Lines Matching defs:whence
3390 * @whence: Seek mode (SEEK_DATA or SEEK_HOLE).
3403 static bool find_desired_extent_in_hole(struct btrfs_inode *inode, int whence,
3413 if (delalloc && whence == SEEK_DATA) {
3418 if (delalloc && whence == SEEK_HOLE) {
3442 if (!delalloc && whence == SEEK_HOLE) {
3454 static loff_t find_desired_extent(struct file *file, loff_t offset, int whence)
3480 if (whence == SEEK_HOLE &&
3578 found = find_desired_extent_in_hole(inode, whence,
3619 found = find_desired_extent_in_hole(inode, whence,
3639 if (whence == SEEK_DATA) {
3662 found = find_desired_extent_in_hole(inode, whence,
3676 if (whence == SEEK_DATA && start >= i_size)
3682 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence)
3686 switch (whence) {
3688 return generic_file_llseek(file, offset, whence);
3692 offset = find_desired_extent(file, offset, whence);