Lines Matching defs:whence
3460 * @whence: Seek mode (SEEK_DATA or SEEK_HOLE).
3473 static bool find_desired_extent_in_hole(struct btrfs_inode *inode, int whence,
3483 if (delalloc && whence == SEEK_DATA) {
3488 if (delalloc && whence == SEEK_HOLE) {
3512 if (!delalloc && whence == SEEK_HOLE) {
3524 static loff_t find_desired_extent(struct file *file, loff_t offset, int whence)
3550 if (whence == SEEK_HOLE &&
3676 found = find_desired_extent_in_hole(inode, whence,
3717 found = find_desired_extent_in_hole(inode, whence,
3737 if (whence == SEEK_DATA) {
3760 found = find_desired_extent_in_hole(inode, whence,
3774 if (whence == SEEK_DATA && start >= i_size)
3780 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence)
3784 switch (whence) {
3786 return generic_file_llseek(file, offset, whence);
3790 offset = find_desired_extent(file, offset, whence);