Home
last modified time | relevance | path

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

12345678910>>...18

/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 no_llseek(struct file *file, loff_t offset, int whence) in no_llseek()
[all …]
Dremap_range.c29 static int generic_remap_checks(struct file *file_in, loff_t pos_in, in generic_remap_checks()
30 struct file *file_out, loff_t pos_out, in generic_remap_checks()
31 loff_t *req_count, unsigned int remap_flags) in generic_remap_checks()
37 loff_t size_in, size_out; in generic_remap_checks()
38 loff_t bs = inode_out->i_sb->s_blocksize; in generic_remap_checks()
100 static int remap_verify_area(struct file *file, loff_t pos, loff_t len, in remap_verify_area()
106 if (unlikely((loff_t) (pos + len) < 0)) in remap_verify_area()
125 loff_t pos_out, in generic_remap_check_len()
126 loff_t *len, in generic_remap_check_len()
130 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
380 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()
573 static void *single_start(struct seq_file *p, loff_t *pos) in single_start()
578 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next()
919 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start()
931 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.h309 loff_t bc_last_md_record_offset;
320 loff_t md_record_offset;
321 loff_t md_prev_record_offset;
363 int block_index, loff_t bm_base_off,
369 loff_t hash_area_off,
370 loff_t bm_base_off,
371 loff_t file_size);
375 loff_t *tree_offset, loff_t *sig_offset);
378 loff_t status_offset,
383 loff_t *offset);
[all …]
/fs/nfs/
Dnfs42.h19 int nfs42_proc_allocate(struct file *, loff_t, loff_t);
20 ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t,
22 int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
23 loff_t nfs42_proc_llseek(struct file *, loff_t, int);
26 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
Dnfs4file.c138 static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in __nfs4_copy_file_range()
139 struct file *file_out, loff_t pos_out, in __nfs4_copy_file_range()
192 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in nfs4_copy_file_range()
193 struct file *file_out, loff_t pos_out, in nfs4_copy_file_range()
206 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek()
208 loff_t ret; in nfs4_file_llseek()
222 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate()
242 static loff_t nfs42_remap_file_range(struct file *src_file, loff_t src_off, in nfs42_remap_file_range()
243 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.c89 loff_t *pos, loff_t length, unsigned *offp, unsigned *lenp) in iomap_adjust_read_range()
91 loff_t orig_pos = *pos; in iomap_adjust_read_range()
92 loff_t isize = i_size_read(inode); in iomap_adjust_read_range()
96 unsigned plen = min_t(loff_t, PAGE_SIZE - poff, length); in iomap_adjust_read_range()
208 static loff_t iomap_read_inline_data(const struct iomap_iter *iter, in iomap_read_inline_data()
238 loff_t pos) in iomap_block_needs_zeroing()
247 static loff_t iomap_readpage_iter(const struct iomap_iter *iter, in iomap_readpage_iter()
248 struct iomap_readpage_ctx *ctx, loff_t offset) in iomap_readpage_iter()
251 loff_t pos = iter->pos + offset; in iomap_readpage_iter()
252 loff_t length = iomap_length(iter) - offset; in iomap_readpage_iter()
[all …]
Ddirect-io.c31 loff_t i_size;
32 loff_t size;
66 struct iomap_dio *dio, struct bio *bio, loff_t pos) in iomap_dio_submit_bio()
85 loff_t offset = iocb->ki_pos; in iomap_dio_complete()
189 loff_t pos, unsigned len) in iomap_dio_zero()
238 static loff_t iomap_dio_bio_iter(const struct iomap_iter *iter, in iomap_dio_bio_iter()
246 loff_t length = iomap_length(iter); in iomap_dio_bio_iter()
247 loff_t pos = iter->pos; in iomap_dio_bio_iter()
380 static loff_t iomap_dio_hole_iter(const struct iomap_iter *iter, in iomap_dio_hole_iter()
383 loff_t length = iov_iter_zero(iomap_length(iter), dio->submit.iter); in iomap_dio_hole_iter()
[all …]
/fs/xfs/
Dxfs_reflink.h41 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in,
42 struct file *file_out, loff_t pos_out, loff_t len,
50 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in,
51 struct file *file_out, loff_t pos_out, loff_t *len,
53 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in,
54 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len,
55 loff_t *remapped);
/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/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/overlayfs/
Dfile.c175 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek()
180 loff_t ret; in ovl_llseek()
414 loff_t *ppos, size_t len, unsigned int flags) in ovl_splice_write()
449 static int ovl_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ovl_fsync()
497 static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in ovl_fallocate()
530 static int ovl_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in ovl_fadvise()
555 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, in ovl_copyfile()
556 struct file *file_out, loff_t pos_out, in ovl_copyfile()
557 loff_t len, unsigned int flags, enum ovl_copyop op) in ovl_copyfile()
562 loff_t ret; in ovl_copyfile()
[all …]
/fs/afs/
Dwrite.c31 loff_t pos, unsigned len, unsigned flags, in afs_write_begin()
109 loff_t pos, unsigned len, unsigned copied, in afs_write_end()
116 loff_t i_size, maybe_i_size; in afs_write_end()
174 loff_t start, loff_t len) in afs_kill_pages()
220 loff_t start, loff_t len) in afs_redirty_pages()
261 static void afs_pages_written_back(struct afs_vnode *vnode, loff_t start, unsigned int len) in afs_pages_written_back()
356 static int afs_store_data(struct afs_vnode *vnode, struct iov_iter *iter, loff_t pos, in afs_store_data()
361 loff_t size = iov_iter_count(iter), i_size; in afs_store_data()
434 loff_t start, in afs_extend_writeback()
435 loff_t max_len, in afs_extend_writeback()
[all …]
/fs/nfsd/
Dvfs.h42 typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
59 struct file *, loff_t, loff_t, int);
95 struct file *file, loff_t offset,
99 struct file *file, loff_t offset,
104 loff_t, struct kvec *, int, unsigned long *,
106 __be32 nfsd_write(struct svc_rqst *, struct svc_fh *, loff_t,
110 struct nfsd_file *nf, loff_t offset,
128 loff_t *, struct readdir_cd *, nfsd_filldir_t);
/fs/cachefiles/
Dio.c19 loff_t start;
59 loff_t start_pos, in cachefiles_read()
79 loff_t off = start_pos, off2; in cachefiles_read()
82 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read()
183 loff_t start_pos, in cachefiles_write()
269 loff_t i_size) in cachefiles_prepare_read()
276 loff_t off, to; in cachefiles_prepare_read()
294 if (off < 0 && off >= (loff_t)-MAX_ERRNO) { in cachefiles_prepare_read()
295 if (off == (loff_t)-ENXIO) in cachefiles_prepare_read()
310 if (to < 0 && to >= (loff_t)-MAX_ERRNO) in cachefiles_prepare_read()
[all …]
/fs/gfs2/
Dbmap.h52 extern int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
54 extern int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length,
68 extern int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
/fs/cifs/
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);
142 struct file *src_file, loff_t off,
143 struct file *dst_file, loff_t destoff,
147 extern void cifs_setsize(struct inode *inode, loff_t offset);
148 extern int cifs_truncate_page(struct address_space *mapping, loff_t from);
/fs/fat/
Dfat.h120 loff_t mmu_private; /* physically allocated size */
125 loff_t i_pos; /* on-disk position of directory entry or 0 */
133 loff_t i_pos; /* on-disk position of directory entry */
134 loff_t slot_off; /* offset for slot or de start */
252 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset()
258 static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, in fat_i_pos_read()
261 loff_t i_pos; in fat_i_pos_read()
402 extern void fat_truncate_blocks(struct inode *inode, loff_t offset);
406 extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,
410 extern int fat_block_truncate_page(struct inode *inode, loff_t from);
[all …]
/fs/ntfs3/
Dfile.c97 const loff_t valid, in ntfs_extend_initialized_size()
98 const loff_t new_valid) in ntfs_extend_initialized_size()
103 loff_t pos = valid; in ntfs_extend_initialized_size()
131 loff_t vbo = (loff_t)vcn << bits; in ntfs_extend_initialized_size()
132 loff_t to = vbo + ((loff_t)clen << bits); in ntfs_extend_initialized_size()
203 loff_t page_off; in ntfs_zero_range()
210 page_off = (loff_t)idx << PAGE_SHIFT; in ntfs_zero_range()
288 loff_t vbo_clst = vbo & sbi->cluster_mask_inv; in ntfs_sparse_cluster()
289 loff_t end = ntfs_up_cluster(sbi, vbo + bytes); in ntfs_sparse_cluster()
293 loff_t page_off; in ntfs_sparse_cluster()
[all …]
/fs/fuse/
Dfuse_i.h194 loff_t size;
197 loff_t pos;
295 loff_t pos;
298 loff_t cache_off;
1094 void fuse_read_args_fill(struct fuse_io_args *ia, struct file *file, loff_t pos,
1117 int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
1295 loff_t offset, loff_t len);
1324 loff_t *ppos, int flags);
1332 bool fuse_write_update_size(struct inode *inode, loff_t pos);
1545 struct file *file, loff_t offset, int whence);
[all …]
/fs/ksmbd/
Dvfs.h119 loff_t *pos, char *rbuf);
121 char *buf, size_t count, loff_t *pos, bool sync,
131 struct ksmbd_file *fp, loff_t size);
140 loff_t *total_size_written);
168 loff_t off, loff_t len);
170 int ksmbd_vfs_fqar_lseek(struct ksmbd_file *fp, loff_t start, loff_t length,
/fs/btrfs/
Dreflink.h8 loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in,
9 struct file *file_out, loff_t pos_out,
10 loff_t len, unsigned int remap_flags);

12345678910>>...18