/fs/iomap/ |
D | seek.c | 19 int whence) in page_seek_hole_data() argument 23 bool seek_data = whence == SEEK_DATA; in page_seek_hole_data() 34 if (whence == SEEK_HOLE) in page_seek_hole_data() 75 int whence) in page_cache_seek_hole_data() argument 98 if (page_seek_hole_data(inode, page, &lastoff, whence)) in page_cache_seek_hole_data() 106 if (whence != SEEK_HOLE) in page_cache_seek_hole_data()
|
/fs/ |
D | read_write.c | 86 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument 89 switch (whence) { in generic_file_llseek_size() 144 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument 148 return generic_file_llseek_size(file, offset, whence, in generic_file_llseek() 162 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek() argument 164 switch (whence) { in fixed_size_llseek() 166 return generic_file_llseek_size(file, offset, whence, in fixed_size_llseek() 181 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek() argument 183 switch (whence) { in no_seek_end_llseek() 185 return generic_file_llseek_size(file, offset, whence, in no_seek_end_llseek() [all …]
|
D | libfs.c | 133 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() argument 136 switch (whence) { in dcache_dir_lseek() 1253 static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) in empty_dir_llseek() argument 1256 return generic_file_llseek_size(file, offset, whence, 2, 2); in empty_dir_llseek()
|
/fs/nfs/ |
D | nfs4file.c | 160 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument 164 switch (whence) { in nfs4_file_llseek() 167 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek() 172 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
|
D | file.c | 115 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument 118 filp, offset, whence); in nfs_file_llseek() 124 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek() 132 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
|
D | nfs42proc.c | 463 struct nfs_lock_context *lock, loff_t offset, int whence) in _nfs42_proc_llseek() argument 469 .sa_what = (whence == SEEK_HOLE) ? in _nfs42_proc_llseek() 504 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek() argument 519 err = _nfs42_proc_llseek(filep, lock, offset, whence); in nfs42_proc_llseek()
|
/fs/hpfs/ |
D | dir.c | 24 static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) in hpfs_dir_lseek() argument 26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek() 34 if (whence == SEEK_DATA || whence == SEEK_HOLE) in hpfs_dir_lseek()
|
/fs/ocfs2/ |
D | extent_map.c | 866 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument 877 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset() 893 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset() 922 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset() 923 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset() 933 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
|
/fs/orangefs/ |
D | dir.c | 283 int whence) in orangefs_dir_llseek() argument 290 if (!whence && offset < od->end) { in orangefs_dir_llseek() 301 return default_llseek(file, offset, whence); in orangefs_dir_llseek()
|
/fs/pstore/ |
D | inode.c | 154 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument 159 return seq_lseek(file, off, whence); in pstore_file_llseek() 160 return default_llseek(file, off, whence); in pstore_file_llseek()
|
/fs/overlayfs/ |
D | file.c | 144 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek() argument 156 if (whence == SEEK_CUR) in ovl_llseek() 159 if (whence == SEEK_SET) in ovl_llseek() 178 ret = vfs_llseek(real.file, offset, whence); in ovl_llseek()
|
/fs/sdcardfs/ |
D | file.c | 359 static loff_t sdcardfs_file_llseek(struct file *file, loff_t offset, int whence) in sdcardfs_file_llseek() argument 364 err = generic_file_llseek(file, offset, whence); in sdcardfs_file_llseek() 369 err = generic_file_llseek(lower_file, offset, whence); in sdcardfs_file_llseek()
|
/fs/ext4/ |
D | file.c | 481 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) in ext4_llseek() argument 491 switch (whence) { in ext4_llseek() 493 return generic_file_llseek_size(file, offset, whence, in ext4_llseek()
|
D | dir.c | 367 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument 374 ret = generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek() 377 ret = ext4_llseek(file, offset, whence); in ext4_dir_llseek()
|
/fs/f2fs/ |
D | file.c | 343 pgoff_t pgofs, int whence) in __get_first_dirty_index() argument 348 if (whence != SEEK_DATA) in __get_first_dirty_index() 362 pgoff_t dirty, pgoff_t pgofs, int whence) in __found_offset() argument 364 switch (whence) { in __found_offset() 378 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block() argument 396 if (whence == SEEK_HOLE) in f2fs_seek_block() 403 dirty = __get_first_dirty_index(inode->i_mapping, pgofs, whence); in f2fs_seek_block() 412 if (whence == SEEK_DATA) { in f2fs_seek_block() 439 pgofs, whence)) { in f2fs_seek_block() 447 if (whence == SEEK_DATA) in f2fs_seek_block() [all …]
|
/fs/hostfs/ |
D | hostfs_user.c | 146 int lseek_file(int fd, long long offset, int whence) in lseek_file() argument 150 ret = lseek64(fd, offset, whence); in lseek_file()
|
D | hostfs.h | 80 extern int lseek_file(int fd, long long offset, int whence);
|
/fs/ecryptfs/ |
D | file.c | 318 static loff_t ecryptfs_dir_llseek(struct file *file, loff_t offset, int whence) in ecryptfs_dir_llseek() argument 320 return vfs_llseek(ecryptfs_file_to_lower(file), offset, whence); in ecryptfs_dir_llseek()
|
/fs/cifs/ |
D | cifsfs.c | 933 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) in cifs_llseek() argument 942 if (whence != SEEK_SET && whence != SEEK_CUR) { in cifs_llseek() 973 offset, whence); in cifs_llseek() 975 return generic_file_llseek(file, offset, whence); in cifs_llseek()
|
/fs/proc/ |
D | inode.c | 198 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument 208 rv = llseek(file, offset, whence); in proc_reg_llseek()
|
/fs/gfs2/ |
D | file.c | 56 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek() argument 62 switch (whence) { in gfs2_llseek() 67 error = generic_file_llseek(file, offset, whence); in gfs2_llseek() 86 error = generic_file_llseek(file, offset, whence); in gfs2_llseek()
|
/fs/xfs/ |
D | xfs_file.c | 1105 int whence) in xfs_file_llseek() argument 1112 switch (whence) { in xfs_file_llseek() 1114 return generic_file_llseek(file, offset, whence); in xfs_file_llseek()
|
/fs/btrfs/ |
D | file.c | 3354 static int find_desired_extent(struct inode *inode, loff_t *offset, int whence) in find_desired_extent() argument 3393 if (whence == SEEK_HOLE && in find_desired_extent() 3397 else if (whence == SEEK_DATA && in find_desired_extent() 3409 if (whence == SEEK_DATA && start >= inode->i_size) in find_desired_extent() 3419 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) in btrfs_file_llseek() argument 3425 switch (whence) { in btrfs_file_llseek() 3428 offset = generic_file_llseek(file, offset, whence); in btrfs_file_llseek() 3437 ret = find_desired_extent(inode, &offset, whence); in btrfs_file_llseek()
|
/fs/fuse/ |
D | file.c | 2485 static loff_t fuse_lseek(struct file *file, loff_t offset, int whence) in fuse_lseek() argument 2494 .whence = whence in fuse_lseek() 2524 return generic_file_llseek(file, offset, whence); in fuse_lseek() 2529 static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) in fuse_file_llseek() argument 2534 switch (whence) { in fuse_file_llseek() 2538 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek() 2544 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek() 2550 retval = fuse_lseek(file, offset, whence); in fuse_file_llseek()
|
/fs/ceph/ |
D | file.c | 1593 static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) in ceph_llseek() argument 1602 if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) { in ceph_llseek() 1609 switch (whence) { in ceph_llseek()
|