Home
last modified time | relevance | path

Searched refs:loff_t (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/fs/
Dread_write.c54 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos()
85 loff_t
86 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size()
87 loff_t maxsize, loff_t eof) in generic_file_llseek_size()
144 loff_t generic_file_llseek(struct file *file, loff_t offset, int 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()
181 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek()
201 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size) in no_seek_end_llseek_size()
224 loff_t noop_llseek(struct file *file, loff_t offset, int whence) in noop_llseek()
230 loff_t default_llseek(struct file *file, loff_t offset, int whence) in default_llseek()
[all …]
Dremap_range.c31 static int generic_remap_checks(struct file *file_in, loff_t pos_in, in generic_remap_checks()
32 struct file *file_out, loff_t pos_out, in generic_remap_checks()
33 loff_t *req_count, unsigned int remap_flags) in generic_remap_checks()
39 loff_t size_in, size_out; in generic_remap_checks()
40 loff_t bs = inode_out->i_sb->s_blocksize; in generic_remap_checks()
102 static int remap_verify_area(struct file *file, loff_t pos, loff_t len, in remap_verify_area()
105 loff_t tmp; in remap_verify_area()
129 loff_t pos_out, in generic_remap_check_len()
130 loff_t *len, in generic_remap_check_len()
134 loff_t new_len = *len; in generic_remap_check_len()
[all …]
Dsync.c180 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range()
229 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range()
234 loff_t endbyte; /* inclusive */ in sync_file_range()
356 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range()
371 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
389 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
Dseq_file.c90 static int traverse(struct seq_file *m, loff_t offset) in traverse()
92 loff_t pos = 0; in traverse()
151 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read()
260 loff_t pos = m->index; in seq_read_iter()
308 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek()
311 loff_t retval = -EINVAL; in seq_lseek()
557 void *single_start(struct seq_file *p, loff_t *pos) in single_start()
562 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next()
903 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start()
915 struct list_head *seq_list_start_head(struct list_head *head, loff_t pos) in seq_list_start_head()
[all …]
/fs/incfs/
Dformat.c45 static loff_t incfs_get_end_offset(struct file *f) in incfs_get_end_offset()
59 loff_t new_end) in truncate_backing_file()
63 loff_t old_end = 0; in truncate_backing_file()
95 size_t count, loff_t pos) in write_to_bf()
127 loff_t file_size = 0; in append_zeros()
128 loff_t new_last_byte_offset = 0; in append_zeros()
161 loff_t record_offset; in append_md_to_backing_file()
162 loff_t file_pos; in append_md_to_backing_file()
219 loff_t file_end = 0; in incfs_write_blockmap_to_backing_file()
250 loff_t *tree_offset, loff_t *sig_offset) in incfs_write_signature_to_backing_file()
[all …]
Dformat.h310 loff_t bc_last_md_record_offset;
326 loff_t md_record_offset;
327 loff_t md_prev_record_offset;
369 int block_index, loff_t bm_base_off,
375 loff_t hash_area_off,
376 loff_t bm_base_off,
377 loff_t file_size);
381 loff_t *tree_offset, loff_t *sig_offset);
384 loff_t status_offset,
389 loff_t *offset);
[all …]
/fs/nfs/
Dnfs42.h20 int nfs42_proc_allocate(struct file *, loff_t, loff_t);
21 ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t,
23 int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
24 loff_t nfs42_proc_llseek(struct file *, loff_t, int);
27 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
Dnfs4file.c135 static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in __nfs4_copy_file_range()
136 struct file *file_out, loff_t pos_out, in __nfs4_copy_file_range()
189 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in nfs4_copy_file_range()
190 struct file *file_out, loff_t pos_out, in nfs4_copy_file_range()
203 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek()
205 loff_t ret; in nfs4_file_llseek()
219 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate()
239 static loff_t nfs42_remap_file_range(struct file *src_file, loff_t src_off, in nfs42_remap_file_range()
240 struct file *dst_file, loff_t dst_off, loff_t count, in nfs42_remap_file_range()
/fs/iomap/
Dseek.c13 static loff_t iomap_seek_hole_iter(const struct iomap_iter *iter, in iomap_seek_hole_iter()
14 loff_t *hole_pos) in iomap_seek_hole_iter()
16 loff_t length = iomap_length(iter); in iomap_seek_hole_iter()
33 loff_t
34 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole()
36 loff_t size = i_size_read(inode); in iomap_seek_hole()
59 static loff_t iomap_seek_data_iter(const struct iomap_iter *iter, in iomap_seek_data_iter()
60 loff_t *hole_pos) in iomap_seek_data_iter()
62 loff_t length = iomap_length(iter); in iomap_seek_data_iter()
79 loff_t
[all …]
Dbuffered-io.c26 typedef int (*iomap_punch_t)(struct inode *inode, loff_t offset, loff_t length);
195 loff_t *pos, loff_t length, size_t *offp, size_t *lenp) in iomap_adjust_read_range()
198 loff_t orig_pos = *pos; in iomap_adjust_read_range()
199 loff_t isize = i_size_read(inode); in iomap_adjust_read_range()
203 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range()
325 loff_t pos) in iomap_block_needs_zeroing()
334 static loff_t iomap_readpage_iter(const struct iomap_iter *iter, in iomap_readpage_iter()
335 struct iomap_readpage_ctx *ctx, loff_t offset) in iomap_readpage_iter()
338 loff_t pos = iter->pos + offset; in iomap_readpage_iter()
339 loff_t length = iomap_length(iter) - offset; in iomap_readpage_iter()
[all …]
/fs/xfs/
Dxfs_reflink.h38 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in,
39 struct file *file_out, loff_t pos_out, loff_t len,
47 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in,
48 struct file *file_out, loff_t pos_out, loff_t *len,
50 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in,
51 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len,
52 loff_t *remapped);
/fs/xfs/scrub/
Dxfile.h12 loff_t pos;
29 int xfile_create(const char *description, loff_t isize, struct xfile **xfilep);
32 ssize_t xfile_pread(struct xfile *xf, void *buf, size_t count, loff_t pos);
34 loff_t pos);
41 xfile_obj_load(struct xfile *xf, void *buf, size_t count, loff_t pos) in xfile_obj_load()
55 xfile_obj_store(struct xfile *xf, const void *buf, size_t count, loff_t pos) in xfile_obj_store()
64 loff_t xfile_seek_data(struct xfile *xf, loff_t pos);
67 loff_t size;
73 int xfile_get_page(struct xfile *xf, loff_t offset, unsigned int len,
/fs/ecryptfs/
Dread_write.c28 loff_t offset, size_t size) in ecryptfs_write_lower()
62 loff_t offset; in ecryptfs_write_lower_page_segment()
65 offset = ((((loff_t)page_for_lower->index) << PAGE_SHIFT) in ecryptfs_write_lower_page_segment()
93 int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, in ecryptfs_write()
99 loff_t ecryptfs_file_size = i_size_read(ecryptfs_inode); in ecryptfs_write()
100 loff_t data_offset = 0; in ecryptfs_write()
101 loff_t pos; in ecryptfs_write()
117 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
128 loff_t total_remaining_zeros = (offset - pos); in ecryptfs_write()
219 int ecryptfs_read_lower(char *data, loff_t offset, size_t size, in ecryptfs_read_lower()
[all …]
/fs/cachefiles/
Dio.c20 loff_t start;
74 loff_t start_pos, in cachefiles_read()
102 loff_t off = start_pos, off2; in cachefiles_read()
107 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read()
198 loff_t start, size_t len, size_t granularity, in cachefiles_query_occupancy()
199 loff_t *_data_start, size_t *_data_len) in cachefiles_query_occupancy()
203 loff_t off, off2; in cachefiles_query_occupancy()
224 if (off < 0 && off >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
234 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
280 loff_t start_pos, in __cachefiles_write()
[all …]
/fs/hpfs/
Ddnode.c12 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos()
18 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
22 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
25 int hpfs_add_pos(struct inode *inode, loff_t *pos) in hpfs_add_pos()
29 loff_t **ppos; in hpfs_add_pos()
36 ppos = kmalloc_array(i + 0x11, sizeof(loff_t *), GFP_NOFS); in hpfs_add_pos()
42 memcpy(ppos, hpfs_inode->i_rddir_off, i * sizeof(loff_t)); in hpfs_add_pos()
52 void hpfs_del_pos(struct inode *inode, loff_t *pos) in hpfs_del_pos()
55 loff_t **i, **j; in hpfs_del_pos()
75 static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), in for_all_poss() argument
[all …]
/fs/smb/client/
Dcifsfs.h105 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
106 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
113 extern void cifs_pages_written_back(struct inode *inode, loff_t start, unsigned int len);
114 extern void cifs_pages_write_failed(struct inode *inode, loff_t start, unsigned int len);
115 extern void cifs_pages_write_redirty(struct inode *inode, loff_t start, unsigned int len);
138 struct file *src_file, loff_t off,
139 struct file *dst_file, loff_t destoff,
143 extern void cifs_setsize(struct inode *inode, loff_t offset);
144 extern int cifs_truncate_page(struct address_space *mapping, loff_t from);
/fs/zonefs/
Dfile.c27 static int zonefs_read_iomap_begin(struct inode *inode, loff_t offset, in zonefs_read_iomap_begin()
28 loff_t length, unsigned int flags, in zonefs_read_iomap_begin()
34 loff_t isize; in zonefs_read_iomap_begin()
64 static int zonefs_write_iomap_begin(struct inode *inode, loff_t offset, in zonefs_write_iomap_begin()
65 loff_t length, unsigned int flags, in zonefs_write_iomap_begin()
71 loff_t isize; in zonefs_write_iomap_begin()
128 struct inode *inode, loff_t offset) in zonefs_write_map_blocks()
187 int zonefs_file_truncate(struct inode *inode, loff_t isize) in zonefs_file_truncate()
191 loff_t old_isize; in zonefs_file_truncate()
257 static int zonefs_file_fsync(struct file *file, loff_t start, loff_t end, in zonefs_file_fsync()
[all …]
Dzonefs.h60 loff_t z_size;
63 loff_t z_capacity;
66 loff_t z_wpoffset;
232 loff_t s_blocks;
233 loff_t s_used_blocks;
261 void zonefs_i_size_write(struct inode *inode, loff_t isize);
262 void zonefs_update_stats(struct inode *inode, loff_t new_isize);
281 int zonefs_file_truncate(struct inode *inode, loff_t isize);
/fs/afs/
Dwrite.c19 loff_t start, loff_t end, loff_t *_next,
22 static void afs_write_to_cache(struct afs_vnode *vnode, loff_t start, size_t len,
23 loff_t i_size, bool caching);
59 loff_t next; in afs_flush_conflicting_write()
69 loff_t pos, unsigned len, in afs_write_begin()
154 loff_t pos, unsigned len, unsigned copied, in afs_write_end()
162 loff_t i_size, write_end_pos; in afs_write_end()
221 loff_t start, loff_t len) in afs_kill_pages()
259 loff_t start, loff_t len) in afs_redirty_pages()
290 static void afs_pages_written_back(struct afs_vnode *vnode, loff_t start, unsigned int len) in afs_pages_written_back()
[all …]
/fs/overlayfs/
Dfile.c196 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek()
201 loff_t ret; in ovl_llseek()
425 static ssize_t ovl_splice_read(struct file *in, loff_t *ppos, in ovl_splice_read()
455 loff_t *ppos, size_t len, unsigned int flags) in ovl_splice_write()
490 static int ovl_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ovl_fsync()
538 static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in ovl_fallocate()
571 static int ovl_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in ovl_fadvise()
596 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, in ovl_copyfile()
597 struct file *file_out, loff_t pos_out, in ovl_copyfile()
598 loff_t len, unsigned int flags, enum ovl_copyop op) in ovl_copyfile()
[all …]
/fs/btrfs/
Dfile.h8 int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync);
23 size_t num_pages, loff_t pos, size_t write_bytes,
25 int btrfs_fdatawrite_range(struct inode *inode, loff_t start, loff_t end);
26 int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos,
/fs/gfs2/
Dbmap.h52 int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
54 int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length,
67 int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
/fs/nfsd/
Dvfs.h44 typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
76 struct file *, loff_t, loff_t, int);
110 struct file *file, loff_t offset,
114 struct file *file, loff_t offset,
118 loff_t offset, unsigned long *count,
120 __be32 nfsd_write(struct svc_rqst *, struct svc_fh *, loff_t,
124 struct nfsd_file *nf, loff_t offset,
143 loff_t *, struct readdir_cd *, nfsd_filldir_t);
/fs/fat/
Dfat.h120 loff_t mmu_private; /* physically allocated size */
125 loff_t i_pos; /* on-disk position of directory entry or 0 */
134 loff_t i_pos; /* on-disk position of directory entry */
135 loff_t slot_off; /* offset for slot or de start */
253 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset()
259 static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, in fat_i_pos_read()
262 loff_t i_pos; in fat_i_pos_read()
403 extern void fat_truncate_blocks(struct inode *inode, loff_t offset);
407 extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,
411 extern int fat_block_truncate_page(struct inode *inode, loff_t from);
[all …]
/fs/smb/server/
Dvfs.h80 loff_t *pos, char *rbuf);
82 char *buf, size_t count, loff_t *pos, bool sync,
92 struct ksmbd_file *fp, loff_t size);
101 loff_t *total_size_written);
130 loff_t off, loff_t len);
132 int ksmbd_vfs_fqar_lseek(struct ksmbd_file *fp, loff_t start, loff_t length,

12345678910>>...19