Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 34) sorted by relevance

12

/fs/iomap/
Dseek.c19 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/
Dread_write.c86 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 …]
Dlibfs.c133 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/
Dnfs4file.c160 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()
Dfile.c115 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()
Dnfs42proc.c463 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/
Ddir.c24 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/
Dextent_map.c866 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/
Ddir.c283 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/
Dinode.c154 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/
Dfile.c144 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/
Dfile.c359 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/
Dfile.c481 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()
Ddir.c367 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/
Dfile.c343 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/
Dhostfs_user.c146 int lseek_file(int fd, long long offset, int whence) in lseek_file() argument
150 ret = lseek64(fd, offset, whence); in lseek_file()
Dhostfs.h80 extern int lseek_file(int fd, long long offset, int whence);
/fs/ecryptfs/
Dfile.c318 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/
Dcifsfs.c933 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/
Dinode.c198 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/
Dfile.c56 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/
Dxfs_file.c1105 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/
Dfile.c3354 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/
Dfile.c2485 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/
Dfile.c1593 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()

12