/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 | 138 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() argument 141 switch (whence) { in dcache_dir_lseek() 385 static loff_t offset_dir_llseek(struct file *file, loff_t offset, int whence) in offset_dir_llseek() argument 387 switch (whence) { in offset_dir_llseek() 1618 static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) in empty_dir_llseek() argument 1621 return generic_file_llseek_size(file, offset, whence, 2, 2); in empty_dir_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/nfs/ |
D | nfs4file.c | 203 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument 207 switch (whence) { in nfs4_file_llseek() 210 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek() 215 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
|
D | file.c | 114 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument 117 filp, offset, whence); in nfs_file_llseek() 123 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek() 131 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
|
D | nfs42proc.c | 663 struct nfs_lock_context *lock, loff_t offset, int whence) in _nfs42_proc_llseek() argument 669 .sa_what = (whence == SEEK_HOLE) ? in _nfs42_proc_llseek() 705 if (whence == SEEK_DATA && res.sr_eof) in _nfs42_proc_llseek() 711 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek() argument 726 err = _nfs42_proc_llseek(filep, lock, offset, whence); in nfs42_proc_llseek()
|
/fs/ocfs2/ |
D | extent_map.c | 862 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument 873 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset() 889 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset() 918 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset() 919 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset() 929 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 | 161 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument 166 return seq_lseek(file, off, whence); in pstore_file_llseek() 167 return default_llseek(file, off, whence); in pstore_file_llseek()
|
/fs/overlayfs/ |
D | file.c | 196 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek() argument 208 if (whence == SEEK_CUR) in ovl_llseek() 211 if (whence == SEEK_SET) in ovl_llseek() 230 ret = vfs_llseek(real.file, offset, whence); in ovl_llseek()
|
/fs/btrfs/ |
D | file.c | 3435 static bool find_desired_extent_in_hole(struct btrfs_inode *inode, int whence, in find_desired_extent_in_hole() argument 3445 if (delalloc && whence == SEEK_DATA) { in find_desired_extent_in_hole() 3450 if (delalloc && whence == SEEK_HOLE) { in find_desired_extent_in_hole() 3474 if (!delalloc && whence == SEEK_HOLE) { in find_desired_extent_in_hole() 3486 static loff_t find_desired_extent(struct file *file, loff_t offset, int whence) in find_desired_extent() argument 3512 if (whence == SEEK_HOLE && in find_desired_extent() 3610 found = find_desired_extent_in_hole(inode, whence, in find_desired_extent() 3651 found = find_desired_extent_in_hole(inode, whence, in find_desired_extent() 3671 if (whence == SEEK_DATA) { in find_desired_extent() 3694 found = find_desired_extent_in_hole(inode, whence, in find_desired_extent() [all …]
|
/fs/ext4/ |
D | dir.c | 384 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument 391 ret = generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek() 394 ret = ext4_llseek(file, offset, whence); in ext4_dir_llseek()
|
D | file.c | 898 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) in ext4_llseek() argument 908 switch (whence) { in ext4_llseek() 910 return generic_file_llseek_size(file, offset, whence, in ext4_llseek()
|
/fs/hostfs/ |
D | hostfs_user.c | 148 int lseek_file(int fd, long long offset, int whence) in lseek_file() argument 152 ret = lseek64(fd, offset, whence); in lseek_file()
|
D | hostfs.h | 86 extern int lseek_file(int fd, long long offset, int whence);
|
/fs/ecryptfs/ |
D | file.c | 337 static loff_t ecryptfs_dir_llseek(struct file *file, loff_t offset, int whence) in ecryptfs_dir_llseek() argument 339 return vfs_llseek(ecryptfs_file_to_lower(file), offset, whence); in ecryptfs_dir_llseek()
|
/fs/proc/ |
D | inode.c | 278 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument 284 return pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek() 286 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
|
/fs/fuse/ |
D | backing.c | 377 struct file *file, loff_t offset, int whence) in fuse_lseek_initialize() argument 384 .whence = whence, in fuse_lseek_initialize() 401 int fuse_lseek_backing(struct fuse_bpf_args *fa, struct file *file, loff_t offset, int whence) in fuse_lseek_backing() argument 411 if (whence == SEEK_CUR) { in fuse_lseek_backing() 416 if (whence == SEEK_SET) { in fuse_lseek_backing() 424 ret = vfs_llseek(backing_file, fli->offset, fli->whence); in fuse_lseek_backing() 430 void *fuse_lseek_finalize(struct fuse_bpf_args *fa, struct file *file, loff_t offset, int whence) in fuse_lseek_finalize() argument
|
D | file.c | 2835 static loff_t fuse_lseek(struct file *file, loff_t offset, int whence) in fuse_lseek() argument 2844 .whence = whence in fuse_lseek() 2874 return generic_file_llseek(file, offset, whence); in fuse_lseek() 2879 static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) in fuse_file_llseek() argument 2890 file, offset, whence); in fuse_file_llseek() 2895 switch (whence) { in fuse_file_llseek() 2899 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek() 2905 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek() 2911 retval = fuse_lseek(file, offset, whence); in fuse_file_llseek()
|
/fs/smb/client/ |
D | cifsfs.c | 1044 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) in cifs_llseek() argument 1053 if (whence != SEEK_SET && whence != SEEK_CUR) { in cifs_llseek() 1084 offset, whence); in cifs_llseek() 1086 return generic_file_llseek(file, offset, whence); in cifs_llseek()
|
/fs/f2fs/ |
D | file.c | 401 struct dnode_of_data *dn, pgoff_t index, int whence) in __found_offset() argument 414 switch (whence) { in __found_offset() 434 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block() argument 452 if (whence == SEEK_HOLE) { in f2fs_seek_block() 455 } else if (whence == SEEK_DATA) { in f2fs_seek_block() 470 if (whence == SEEK_DATA) { in f2fs_seek_block() 496 pgofs, whence)) { in f2fs_seek_block() 504 if (whence == SEEK_DATA) in f2fs_seek_block() 507 if (whence == SEEK_HOLE && data_ofs > isize) in f2fs_seek_block() 516 static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) in f2fs_llseek() argument [all …]
|
/fs/gfs2/ |
D | file.c | 58 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek() argument 64 switch (whence) { in gfs2_llseek() 69 error = generic_file_llseek(file, offset, whence); in gfs2_llseek() 88 error = generic_file_llseek(file, offset, whence); in gfs2_llseek()
|
/fs/cachefiles/ |
D | ondemand.c | 88 int whence) in cachefiles_ondemand_fd_llseek() argument 96 return vfs_llseek(file, pos, whence); in cachefiles_ondemand_fd_llseek()
|
/fs/zonefs/ |
D | file.c | 332 static loff_t zonefs_file_llseek(struct file *file, loff_t offset, int whence) in zonefs_file_llseek() argument 341 return generic_file_llseek_size(file, offset, whence, isize, isize); in zonefs_file_llseek()
|
/fs/xfs/ |
D | xfs_file.c | 1300 int whence) in xfs_file_llseek() argument 1307 switch (whence) { in xfs_file_llseek() 1309 return generic_file_llseek(file, offset, whence); in xfs_file_llseek()
|