Lines Matching defs:mode
2180 /* Hole or vacuum extent(only exists in no-hole mode) */
2215 * mode, we have locked the inode's i_mmap_lock in exclusive mode,
2794 const int mode)
2801 if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode))
2849 const int mode)
2889 mode);
2916 mode);
2926 mode);
3000 ret = btrfs_prealloc_file_range(inode, mode, alloc_start,
3012 ret = btrfs_fallocate_update_isize(inode, offset + len, mode);
3022 static long btrfs_fallocate(struct file *file, int mode,
3045 /* Do not allow fallocate in ZONED mode */
3053 /* Make sure we aren't being give some crap mode */
3054 if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE |
3058 if (mode & FALLOC_FL_PUNCH_HOLE)
3063 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) {
3097 * We have locked the inode at the VFS level (in exclusive mode) and we
3098 * have locked the i_mmap_lock lock (in exclusive mode). Now before
3109 if (mode & FALLOC_FL_ZERO_RANGE) {
3110 ret = btrfs_zero_range(inode, offset, len, mode);
3172 ret = btrfs_prealloc_file_range(inode, mode,
3203 ret = btrfs_fallocate_update_isize(inode, actual_end, mode);
3390 * @whence: Seek mode (SEEK_DATA or SEEK_HOLE).
3396 * hole that matches the search criteria (seek mode), if such
3400 * Returns true if a subrange matching the given seek mode is found, and if one