Home
last modified time | relevance | path

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

12

/fs/
Dread_write.c76 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
81 switch (whence) { in generic_file_llseek_size()
137 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument
141 return generic_file_llseek_size(file, offset, whence, in generic_file_llseek()
158 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek() argument
164 loff_t no_llseek(struct file *file, loff_t offset, int whence) in no_llseek() argument
170 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek() argument
176 switch (whence) { in default_llseek()
225 loff_t vfs_llseek(struct file *file, loff_t offset, int whence) in vfs_llseek() argument
234 return fn(file, offset, whence); in vfs_llseek()
[all …]
Dbad_inode.c19 static loff_t bad_file_llseek(struct file *file, loff_t offset, int whence) in bad_file_llseek() argument
Dseq_file.c315 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek() argument
322 switch (whence) { in seq_lseek()
Dlibfs.c84 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() argument
88 switch (whence) { in dcache_dir_lseek()
Dblock_dev.c325 static loff_t block_llseek(struct file *file, loff_t offset, int whence) in block_llseek() argument
335 switch (whence) { in block_llseek()
/fs/ext4/
Dfile.c432 int whence, in ext4_find_unwritten_pgoff() argument
462 if (whence == SEEK_DATA) in ext4_find_unwritten_pgoff()
465 BUG_ON(whence != SEEK_HOLE); in ext4_find_unwritten_pgoff()
481 if (lastoff == startoff && whence == SEEK_HOLE && in ext4_find_unwritten_pgoff()
495 if (lastoff < endoff && whence == SEEK_HOLE && in ext4_find_unwritten_pgoff()
520 if (whence == SEEK_DATA) in ext4_find_unwritten_pgoff()
523 if (whence == SEEK_HOLE) in ext4_find_unwritten_pgoff()
545 if (nr_pages < num && whence == SEEK_HOLE) { in ext4_find_unwritten_pgoff()
745 loff_t ext4_llseek(struct file *file, loff_t offset, int whence) in ext4_llseek() argument
755 switch (whence) { in ext4_llseek()
[all …]
Ddir.c348 static loff_t ext4_dir_llseek(struct file *file, loff_t offset, int whence) in ext4_dir_llseek() argument
355 return generic_file_llseek_size(file, offset, whence, in ext4_dir_llseek()
358 return ext4_llseek(file, offset, whence); in ext4_dir_llseek()
/fs/hpfs/
Ddir.c23 static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) in hpfs_dir_lseek() argument
25 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
33 if (whence == SEEK_DATA || whence == SEEK_HOLE) in hpfs_dir_lseek()
/fs/ocfs2/
Dextent_map.c834 int ocfs2_seek_data_hole_offset(struct file *file, loff_t *offset, int whence) in ocfs2_seek_data_hole_offset() argument
845 BUG_ON(whence != SEEK_DATA && whence != SEEK_HOLE); in ocfs2_seek_data_hole_offset()
861 if (whence == SEEK_HOLE) in ocfs2_seek_data_hole_offset()
890 if ((!is_data && whence == SEEK_HOLE) || in ocfs2_seek_data_hole_offset()
891 (is_data && whence == SEEK_DATA)) { in ocfs2_seek_data_hole_offset()
901 if (whence == SEEK_HOLE) { in ocfs2_seek_data_hole_offset()
/fs/sdcardfs/
Dfile.c342 static loff_t sdcardfs_file_llseek(struct file *file, loff_t offset, int whence) in sdcardfs_file_llseek() argument
347 err = generic_file_llseek(file, offset, whence); in sdcardfs_file_llseek()
352 err = generic_file_llseek(lower_file, offset, whence); in sdcardfs_file_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/nfs/
Dfile.c122 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek() argument
127 offset, whence); in nfs_file_llseek()
133 if (whence != SEEK_SET && whence != SEEK_CUR) { in nfs_file_llseek()
141 return generic_file_llseek(filp, offset, whence); in nfs_file_llseek()
Ddir.c874 static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence) in nfs_llseek_dir() argument
883 offset, whence); in nfs_llseek_dir()
886 switch (whence) { in nfs_llseek_dir()
/fs/ceph/
Dfile.c821 static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) in ceph_llseek() argument
829 if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) { in ceph_llseek()
837 switch (whence) { in ceph_llseek()
/fs/ext3/
Ddir.c299 loff_t ext3_dir_llseek(struct file *file, loff_t offset, int whence) in ext3_dir_llseek() argument
306 return generic_file_llseek_size(file, offset, whence, in ext3_dir_llseek()
309 return generic_file_llseek(file, offset, whence); in ext3_dir_llseek()
/fs/hostfs/
Dhostfs.h78 extern int lseek_file(int fd, long long offset, int whence);
Dhostfs_user.c139 int lseek_file(int fd, long long offset, int whence) in lseek_file() argument
143 ret = lseek64(fd, offset, whence); in lseek_file()
/fs/cifs/
Dcifsfs.c731 static loff_t cifs_llseek(struct file *file, loff_t offset, int whence) in cifs_llseek() argument
737 if (whence != SEEK_SET && whence != SEEK_CUR) { in cifs_llseek()
764 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()
69 error = generic_file_llseek(file, offset, whence); in gfs2_llseek()
75 error = generic_file_llseek(file, offset, whence); in gfs2_llseek()
/fs/proc/
Dinode.c187 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
196 rv = llseek(file, offset, whence); in proc_reg_llseek()
/fs/btrfs/
Dfile.c2288 static int find_desired_extent(struct inode *inode, loff_t *offset, int whence) in find_desired_extent() argument
2323 if (whence == SEEK_HOLE && start != 0) { in find_desired_extent()
2357 if (whence == SEEK_HOLE) { in find_desired_extent()
2363 if (whence == SEEK_DATA) { in find_desired_extent()
2403 static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) in btrfs_file_llseek() argument
2409 switch (whence) { in btrfs_file_llseek()
2412 offset = generic_file_llseek(file, offset, whence); in btrfs_file_llseek()
2421 ret = find_desired_extent(inode, &offset, whence); in btrfs_file_llseek()
/fs/sysfs/
Ddir.c1066 static loff_t sysfs_dir_llseek(struct file *file, loff_t offset, int whence) in sysfs_dir_llseek() argument
1072 ret = generic_file_llseek(file, offset, whence); in sysfs_dir_llseek()
/fs/fuse/
Dfile.c1833 static loff_t fuse_file_llseek(struct file *file, loff_t offset, int whence) in fuse_file_llseek() argument
1839 if (whence == SEEK_CUR || whence == SEEK_SET) in fuse_file_llseek()
1840 return generic_file_llseek(file, offset, whence); in fuse_file_llseek()
1845 retval = generic_file_llseek(file, offset, whence); in fuse_file_llseek()
/fs/ubifs/
Ddir.c482 static loff_t ubifs_dir_llseek(struct file *file, loff_t offset, int whence) in ubifs_dir_llseek() argument
484 return generic_file_llseek(file, offset, whence); in ubifs_dir_llseek()
/fs/configfs/
Ddir.c1617 static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence) in configfs_dir_lseek() argument
1622 switch (whence) { in configfs_dir_lseek()

12