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.c136 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() argument
139 switch (whence) { in dcache_dir_lseek()
1340 static loff_t empty_dir_llseek(struct file *file, loff_t offset, int whence) in empty_dir_llseek() argument
1343 return generic_file_llseek_size(file, offset, whence, 2, 2); in empty_dir_llseek()
Dseq_file.c308 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek() argument
314 switch (whence) { in seq_lseek()
/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/nfs/
Dnfs4file.c208 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
212 switch (whence) { in nfs4_file_llseek()
215 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
220 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.c632 struct nfs_lock_context *lock, loff_t offset, int whence) in _nfs42_proc_llseek() argument
638 .sa_what = (whence == SEEK_HOLE) ? in _nfs42_proc_llseek()
673 if (whence == SEEK_DATA && res.sr_eof) in _nfs42_proc_llseek()
679 loff_t nfs42_proc_llseek(struct file *filep, loff_t offset, int whence) in nfs42_proc_llseek() argument
694 err = _nfs42_proc_llseek(filep, lock, offset, whence); in nfs42_proc_llseek()
/fs/ocfs2/
Dextent_map.c864 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
875 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
891 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
920 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
921 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
931 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/proc/
Dinode.c276 static loff_t pde_lseek(struct proc_dir_entry *pde, struct file *file, loff_t offset, int whence) in pde_lseek() argument
283 return lseek(file, offset, whence); in pde_lseek()
286 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
292 return pde_lseek(pde, file, offset, whence); in proc_reg_llseek()
294 rv = pde_lseek(pde, file, offset, whence); in proc_reg_llseek()
/fs/pstore/
Dinode.c160 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
165 return seq_lseek(file, off, whence); in pstore_file_llseek()
166 return default_llseek(file, off, whence); in pstore_file_llseek()
/fs/overlayfs/
Dfile.c179 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek() argument
191 if (whence == SEEK_CUR) in ovl_llseek()
194 if (whence == SEEK_SET) in ovl_llseek()
213 ret = vfs_llseek(real.file, offset, whence); in ovl_llseek()
/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.h84 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/ext4/
Ddir.c390 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument
397 ret = generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek()
400 ret = ext4_llseek(file, offset, whence); in ext4_dir_llseek()
Dfile.c884 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) in ext4_llseek() argument
894 switch (whence) { in ext4_llseek()
896 return generic_file_llseek_size(file, offset, whence, in ext4_llseek()
/fs/cifs/
Dcifsfs.c955 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) in cifs_llseek() argument
964 if (whence != SEEK_SET && whence != SEEK_CUR) { in cifs_llseek()
995 offset, whence); in cifs_llseek()
997 return generic_file_llseek(file, offset, whence); in cifs_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/f2fs/
Dfile.c386 pgoff_t index, int whence) in __found_offset() argument
388 switch (whence) { in __found_offset()
404 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block() argument
422 if (whence == SEEK_HOLE) { in f2fs_seek_block()
425 } else if (whence == SEEK_DATA) { in f2fs_seek_block()
440 if (whence == SEEK_DATA) { in f2fs_seek_block()
466 pgofs, whence)) { in f2fs_seek_block()
474 if (whence == SEEK_DATA) in f2fs_seek_block()
477 if (whence == SEEK_HOLE && data_ofs > isize) in f2fs_seek_block()
486 static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) in f2fs_llseek() argument
[all …]
/fs/xfs/
Dxfs_file.c1214 int whence) in xfs_file_llseek() argument
1221 switch (whence) { in xfs_file_llseek()
1223 return generic_file_llseek(file, offset, whence); in xfs_file_llseek()
/fs/btrfs/
Dfile.c3489 int whence) in find_desired_extent() argument
3528 if (whence == SEEK_HOLE && in find_desired_extent()
3532 else if (whence == SEEK_DATA && in find_desired_extent()
3548 if (whence == SEEK_DATA && start >= i_size) in find_desired_extent()
3557 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) in btrfs_file_llseek() argument
3561 switch (whence) { in btrfs_file_llseek()
3563 return generic_file_llseek(file, offset, whence); in btrfs_file_llseek()
3567 offset = find_desired_extent(inode, offset, whence); in btrfs_file_llseek()
/fs/fuse/
Dfile.c2601 static loff_t fuse_lseek(struct file *file, loff_t offset, int whence) in fuse_lseek() argument
2610 .whence = whence in fuse_lseek()
2640 return generic_file_llseek(file, offset, whence); in fuse_lseek()
2645 static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) in fuse_file_llseek() argument
2650 switch (whence) { in fuse_file_llseek()
2654 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek()
2660 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek()
2666 retval = fuse_lseek(file, offset, whence); in fuse_file_llseek()
/fs/debugfs/
Dfile.c236 PROTO(struct file *filp, loff_t offset, int whence),
237 ARGS(filp, offset, whence));

12