Home
last modified time | relevance | path

Searched refs:f_pos (Results 1 – 25 of 30) sorted by relevance

12

/fs/isofs/
Dnamei.c42 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local
49 f_pos = 0; in isofs_find_entry()
53 while (f_pos < dir->i_size) { in isofs_find_entry()
70 f_pos = (f_pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1); in isofs_find_entry()
71 block = f_pos >> bufbits; in isofs_find_entry()
79 f_pos += de_len; in isofs_find_entry()
/fs/squashfs/
Ddir.c40 int i_count, u64 f_pos) in get_dir_index_using_offset() argument
48 i_count, f_pos); in get_dir_index_using_offset()
55 if (f_pos <= 3) in get_dir_index_using_offset()
56 return f_pos; in get_dir_index_using_offset()
57 f_pos -= 3; in get_dir_index_using_offset()
66 if (index > f_pos) in get_dir_index_using_offset()
/fs/
Dread_write.c61 if (offset != file->f_pos) { in vfs_setpos()
62 file->f_pos = offset; in vfs_setpos()
101 return file->f_pos; in generic_file_llseek_size()
108 offset = vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size()
226 return file->f_pos; in noop_llseek()
242 retval = file->f_pos; in default_llseek()
245 offset += file->f_pos; in default_llseek()
273 if (offset != file->f_pos) { in default_llseek()
274 file->f_pos = offset; in default_llseek()
599 return file->f_mode & FMODE_STREAM ? NULL : &file->f_pos; in file_ppos()
[all …]
Dcoredump.c805 loff_t pos = file->f_pos; in __dump_emit()
816 file->f_pos = pos; in __dump_emit()
884 pos = file->f_pos; in dump_emit_page()
891 file->f_pos = pos; in dump_emit_page()
Dseq_file.c316 offset += file->f_pos; in seq_lseek()
327 file->f_pos = 0; in seq_lseek()
333 retval = file->f_pos = offset; in seq_lseek()
336 file->f_pos = offset; in seq_lseek()
Dioctl.c282 sr.l_start += filp->f_pos; in ioctl_preallocate()
311 sr.l_start += file->f_pos; in compat_ioctl_preallocate()
833 return put_user(i_size_read(inode) - filp->f_pos, in do_vfs_ioctl()
Dreaddir.c105 ctx->pos = file->f_pos; in iterate_dir()
107 file->f_pos = ctx->pos; in iterate_dir()
Dsplice.c1278 offset = out->f_pos; in do_splice()
1296 out->f_pos = offset; in do_splice()
1307 offset = in->f_pos; in do_splice()
1316 in->f_pos = offset; in do_splice()
Dlibfs.c143 offset += file->f_pos; in dcache_dir_lseek()
152 if (offset != file->f_pos) { in dcache_dir_lseek()
169 file->f_pos = offset; in dcache_dir_lseek()
389 offset += file->f_pos; in offset_dir_llseek()
Dbinfmt_elf_fdpic.c1633 if (cprm->file->f_pos != offset) { in elf_fdpic_core_dump()
1637 cprm->file->f_pos, offset); in elf_fdpic_core_dump()
/fs/hpfs/
Ddir.c16 hpfs_del_pos(inode, &filp->f_pos); in hpfs_dir_release()
26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); in hpfs_dir_lseek()
48 if (unlikely(hpfs_add_pos(i, &filp->f_pos) < 0)) { in hpfs_dir_lseek()
54 filp->f_pos = new_off; in hpfs_dir_lseek()
149 ret = hpfs_add_pos(inode, &file->f_pos); in hpfs_readdir()
/fs/overlayfs/
Dfile.c209 return file->f_pos; in ovl_llseek()
227 real.file->f_pos = file->f_pos; in ovl_llseek()
233 file->f_pos = real.file->f_pos; in ovl_llseek()
Dreaddir.c807 if (!file->f_pos) in ovl_dir_llseek()
812 file->f_pos = od->realfile->f_pos; in ovl_dir_llseek()
818 offset += file->f_pos; in ovl_dir_llseek()
828 if (offset != file->f_pos) { in ovl_dir_llseek()
829 file->f_pos = offset; in ovl_dir_llseek()
/fs/configfs/
Ddir.c1670 offset += file->f_pos; in configfs_dir_lseek()
1679 if (offset != file->f_pos) { in configfs_dir_lseek()
1680 file->f_pos = offset; in configfs_dir_lseek()
1681 if (file->f_pos >= 2) { in configfs_dir_lseek()
1685 loff_t n = file->f_pos - 2; in configfs_dir_lseek()
/fs/fuse/
Dbacking.c412 flo->offset = file->f_pos; in fuse_lseek_backing()
423 backing_file->f_pos = file->f_pos; in fuse_lseek_backing()
435 file->f_pos = flo->offset; in fuse_lseek_finalize()
2412 backing_dir->f_pos = file->f_pos; in fuse_readdir_backing()
2439 backing_dir->f_pos = fro->offset; in fuse_readdir_finalize()
/fs/ocfs2/
Dfile.c1922 loff_t f_pos, unsigned int cmd, in __ocfs2_change_file_space() argument
1965 sr->l_start += f_pos; in __ocfs2_change_file_space()
2091 ret = __ocfs2_change_file_space(file, inode, file->f_pos, cmd, sr, 0); in ocfs2_change_file_space()
2653 offset = file->f_pos; in ocfs2_file_llseek()
2656 offset += file->f_pos; in ocfs2_file_llseek()
/fs/proc/
Dfd.c60 (long long)file->f_pos, f_flags, in seq_show()
Dbase.c921 file->f_pos = offset; in mem_lseek()
924 file->f_pos += offset; in mem_lseek()
930 return file->f_pos; in mem_lseek()
3807 static struct task_struct *first_tid(struct pid *pid, int tid, loff_t f_pos, in first_tid() argument
3811 unsigned long nr = f_pos; in first_tid()
3813 if (nr != f_pos) /* 32bit overflow? */ in first_tid()
/fs/ceph/
Ddir.c666 offset += file->f_pos; in ceph_dir_llseek()
681 } else if (is_hash_order(offset) && offset > file->f_pos) { in ceph_dir_llseek()
688 if (offset != file->f_pos) { in ceph_dir_llseek()
689 file->f_pos = offset; in ceph_dir_llseek()
/fs/hfs/
Dcatalog.c255 rd->file->f_pos--; in hfs_cat_delete()
/fs/smb/server/
Dvfs.c413 filp->f_pos = *pos; in ksmbd_vfs_read()
471 fp->filp->f_pos = *pos; in ksmbd_vfs_stream_write()
536 filp->f_pos = *pos; in ksmbd_vfs_write()
/fs/fat/
Ddir.c774 buf.ctx.pos = file->f_pos; in FAT_IOCTL_FILLDIR_FUNC()
779 file->f_pos = buf.ctx.pos; in FAT_IOCTL_FILLDIR_FUNC()
/fs/nfs/
Ddir.c1339 return filp->f_pos; in nfs_llseek_dir()
1341 offset += filp->f_pos; in nfs_llseek_dir()
1347 if (offset != filp->f_pos) { in nfs_llseek_dir()
1348 filp->f_pos = offset; in nfs_llseek_dir()
/fs/hfsplus/
Dcatalog.c400 rd->file->f_pos--; in hfsplus_delete_cat()
Ddir.c141 if (file->f_pos >= inode->i_size) in hfsplus_readdir()

12