Home
last modified time | relevance | path

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

12345678910>>...17

/fs/iomap/
Dseek.c18 page_seek_hole_data(struct inode *inode, struct page *page, loff_t *lastoff, in page_seek_hole_data()
24 loff_t poff = page_offset(page); in page_seek_hole_data()
73 static loff_t
74 page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length, in page_cache_seek_hole_data()
79 loff_t lastoff = offset; in page_cache_seek_hole_data()
120 static loff_t
121 iomap_seek_hole_actor(struct inode *inode, loff_t offset, loff_t length, in iomap_seek_hole_actor()
132 *(loff_t *)data = offset; in iomap_seek_hole_actor()
139 loff_t
140 iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_hole()
[all …]
Dbuffered-io.c65 loff_t *pos, loff_t length, unsigned *offp, unsigned *lenp) in iomap_adjust_read_range()
67 loff_t orig_pos = *pos; in iomap_adjust_read_range()
68 loff_t isize = i_size_read(inode); in iomap_adjust_read_range()
72 unsigned plen = min_t(loff_t, PAGE_SIZE - poff, length); in iomap_adjust_read_range()
206 static loff_t
207 iomap_readpage_actor(struct inode *inode, loff_t pos, loff_t length, void *data, in iomap_readpage_actor()
214 loff_t orig_pos = pos; in iomap_readpage_actor()
294 loff_t ret; in iomap_readpage()
325 iomap_next_page(struct inode *inode, struct list_head *pages, loff_t pos, in iomap_next_page()
326 loff_t length, loff_t *done) in iomap_next_page()
[all …]
Dfiemap.c45 static loff_t
46 iomap_fiemap_actor(struct inode *inode, loff_t pos, loff_t length, void *data, in iomap_fiemap_actor()
50 loff_t ret = length; in iomap_fiemap_actor()
68 loff_t start, loff_t len, const struct iomap_ops *ops) in iomap_fiemap()
71 loff_t ret; in iomap_fiemap()
112 static loff_t
113 iomap_bmap_actor(struct inode *inode, loff_t pos, loff_t length, in iomap_bmap_actor()
134 loff_t pos = bno << inode->i_blkbits; in iomap_bmap()
Ddirect-io.c29 loff_t i_size;
30 loff_t size;
79 loff_t offset = iocb->ki_pos; in iomap_dio_complete()
179 iomap_dio_zero(struct iomap_dio *dio, struct iomap *iomap, loff_t pos, in iomap_dio_zero()
201 static loff_t
202 iomap_dio_bio_actor(struct inode *inode, loff_t pos, loff_t length, in iomap_dio_bio_actor()
332 static loff_t
333 iomap_dio_hole_actor(loff_t length, struct iomap_dio *dio) in iomap_dio_hole_actor()
340 static loff_t
341 iomap_dio_inline_actor(struct inode *inode, loff_t pos, loff_t length, in iomap_dio_inline_actor()
[all …]
Dswapfile.c78 static loff_t iomap_swapfile_activate_actor(struct inode *inode, loff_t pos, in iomap_swapfile_activate_actor()
79 loff_t count, void *data, struct iomap *iomap) in iomap_swapfile_activate_actor()
144 loff_t pos = 0; in iomap_swapfile_activate()
145 loff_t len = ALIGN_DOWN(i_size_read(inode), PAGE_SIZE); in iomap_swapfile_activate()
146 loff_t ret; in iomap_swapfile_activate()
/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 …]
Dsync.c189 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range()
238 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range()
243 loff_t endbyte; /* inclusive */ in sync_file_range()
365 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range()
380 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.c91 static int traverse(struct seq_file *m, loff_t offset) in traverse()
93 loff_t pos = 0; in traverse()
153 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read()
256 loff_t pos = m->index; in seq_read()
310 loff_t seq_lseek(struct file *file, loff_t offset, int whence) in seq_lseek()
313 loff_t retval = -EINVAL; in seq_lseek()
551 static void *single_start(struct seq_file *p, loff_t *pos) in single_start()
556 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next()
896 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start()
908 struct list_head *seq_list_start_head(struct list_head *head, loff_t pos) in seq_list_start_head()
[all …]
Dlibfs.c100 loff_t count, in scan_positives()
133 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek()
221 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir()
451 loff_t pos, unsigned len, unsigned flags, in simple_write_begin()
497 loff_t pos, unsigned len, unsigned copied, in simple_write_end()
501 loff_t last_pos = pos + copied; in simple_write_end()
645 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer()
648 loff_t pos = *ppos; in simple_read_from_buffer()
680 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer()
683 loff_t pos = *ppos; in simple_write_to_buffer()
[all …]
/fs/nfs/
Dnfs42.h16 int nfs42_proc_allocate(struct file *, loff_t, loff_t);
17 ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t);
18 int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
19 loff_t nfs42_proc_llseek(struct file *, loff_t, int);
22 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
Dnfs4file.c132 static ssize_t __nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in __nfs4_copy_file_range()
133 struct file *file_out, loff_t pos_out, in __nfs4_copy_file_range()
146 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in nfs4_copy_file_range()
147 struct file *file_out, loff_t pos_out, in nfs4_copy_file_range()
160 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek()
162 loff_t ret; in nfs4_file_llseek()
176 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate()
196 static loff_t nfs42_remap_file_range(struct file *src_file, loff_t src_off, in nfs42_remap_file_range()
197 struct file *dst_file, loff_t dst_off, loff_t count, in nfs42_remap_file_range()
Dnfs42proc.c23 struct nfs_lock_context *lock, loff_t offset, loff_t len) in _nfs42_proc_fallocate()
60 loff_t offset, loff_t len) in nfs42_proc_fallocate()
87 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_allocate()
108 int nfs42_proc_deallocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_deallocate()
196 static int process_copy_commit(struct file *dst, loff_t pos_dst, in process_copy_commit()
234 loff_t pos_src = args->src_pos; in _nfs42_proc_copy()
235 loff_t pos_dst = args->dst_pos; in _nfs42_proc_copy()
245 pos_src, pos_src + (loff_t)count - 1); in _nfs42_proc_copy()
306 ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src, in nfs42_proc_copy()
307 struct file *dst, loff_t pos_dst, in nfs42_proc_copy()
[all …]
/fs/incfs/
Dformat.h253 loff_t bc_last_md_record_offset;
260 loff_t add_data_offset; /* Additional data's offset */
262 loff_t sig_offset; /* pkcs7 signature's offset in the backing file */
264 loff_t mtree_offset; /* Backing file offset of the hash tree. */
274 loff_t md_record_offset;
275 loff_t md_prev_record_offset;
295 loff_t incfs_get_end_offset(struct file *f);
304 u32 block_count, loff_t *map_base_off);
311 int block_index, loff_t bm_base_off,
316 int block_index, loff_t hash_area_off);
[all …]
Dformat.c42 loff_t incfs_get_end_offset(struct file *f) in incfs_get_end_offset()
56 loff_t new_end) in truncate_backing_file()
60 loff_t old_end = 0; in truncate_backing_file()
94 loff_t file_size = 0; in append_zeros()
95 loff_t new_last_byte_offset = 0; in append_zeros()
122 size_t count, loff_t pos, bool sync) in write_to_bf()
166 loff_t record_offset; in append_md_to_backing_file()
167 loff_t file_pos; in append_md_to_backing_file()
222 u32 block_count, loff_t *map_base_off) in incfs_write_blockmap_to_backing_file()
226 loff_t file_end = 0; in incfs_write_blockmap_to_backing_file()
[all …]
/fs/xfs/
Dxfs_reflink.h42 extern loff_t xfs_reflink_remap_range(struct file *file_in, loff_t pos_in,
43 struct file *file_out, loff_t pos_out, loff_t len,
51 extern int xfs_reflink_remap_prep(struct file *file_in, loff_t pos_in,
52 struct file *file_out, loff_t pos_out, loff_t *len,
54 extern int xfs_reflink_remap_blocks(struct xfs_inode *src, loff_t pos_in,
55 struct xfs_inode *dest, loff_t pos_out, loff_t remap_len,
56 loff_t *remapped);
Dxfs_file.c78 loff_t start, in xfs_dir_fsync()
79 loff_t end, in xfs_dir_fsync()
101 loff_t start, in xfs_file_fsync()
102 loff_t end, in xfs_file_fsync()
292 loff_t isize; in xfs_file_aio_write_checks()
378 loff_t offset = iocb->ki_pos; in xfs_dio_write_end_io()
580 loff_t pos; in xfs_file_dax_write()
800 loff_t offset, in xfs_file_fallocate()
801 loff_t len) in xfs_file_fallocate()
808 loff_t new_size = 0; in xfs_file_fallocate()
[all …]
/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 …]
Dmmap.c33 struct page *ecryptfs_get_locked_page(struct inode *inode, loff_t index) in ecryptfs_get_locked_page()
111 loff_t extent_num_in_page = 0; in ecryptfs_copy_up_encrypted_with_header()
112 loff_t num_extents_per_page = (PAGE_SIZE in ecryptfs_copy_up_encrypted_with_header()
117 loff_t view_extent_num = ((((loff_t)page->index) in ecryptfs_copy_up_encrypted_with_header()
149 loff_t lower_offset = in ecryptfs_copy_up_encrypted_with_header()
266 loff_t pos, unsigned len, unsigned flags, in ecryptfs_write_begin()
271 loff_t prev_page_end_size; in ecryptfs_write_begin()
279 prev_page_end_size = ((loff_t)index << PAGE_SHIFT); in ecryptfs_write_begin()
464 loff_t pos, unsigned len, unsigned copied, in ecryptfs_write_end()
/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/nfsd/
Dvfs.h40 typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
57 struct file *, loff_t, loff_t, int);
74 loff_t, unsigned long);
82 struct file *file, loff_t offset,
86 struct file *file, loff_t offset,
91 loff_t, struct kvec *, int, unsigned long *,
93 __be32 nfsd_write(struct svc_rqst *, struct svc_fh *, loff_t,
96 struct file *file, loff_t offset,
114 loff_t *, struct readdir_cd *, nfsd_filldir_t);
/fs/overlayfs/
Dfile.c144 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek()
294 static int ovl_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ovl_fsync()
347 static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in ovl_fallocate()
370 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()
603 static ssize_t ovl_copy_file_range(struct file *file_in, loff_t pos_in, in ovl_copy_file_range()
604 struct file *file_out, loff_t pos_out, in ovl_copy_file_range()
[all …]
/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()
401 extern void fat_truncate_blocks(struct inode *inode, loff_t offset);
404 extern int fat_file_fsync(struct file *file, loff_t start, loff_t end,
408 extern int fat_block_truncate_page(struct inode *inode, loff_t from);
[all …]
/fs/gfs2/
Dfile.c56 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek()
60 loff_t error; in gfs2_llseek()
395 static void gfs2_size_hint(struct file *filep, loff_t offset, size_t size) in gfs2_size_hint()
456 loff_t size; in gfs2_page_mkwrite()
709 static int gfs2_fsync(struct file *file, loff_t start, loff_t end, in gfs2_fsync()
776 loff_t offset = iocb->ki_pos; in gfs2_file_direct_write()
871 loff_t pos, endbyte; in gfs2_file_write_iter()
920 static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len, in fallocate_chunk()
925 loff_t end = offset + len; in fallocate_chunk()
974 static void calc_max_reserv(struct gfs2_inode *ip, loff_t *len, in calc_max_reserv()
[all …]
/fs/ceph/
Dfile.c768 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()
832 loff_t i_size = i_size_read(inode); in ceph_aio_complete_req()
833 loff_t endoff = aio_req->iocb->ki_pos + rc; in ceph_aio_complete_req()
943 loff_t pos = iocb->ki_pos; in ceph_direct_read_write()
1129 ceph_sync_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos, in ceph_sync_write()
1336 loff_t i_size; in ceph_read_iter()
1360 loff_t end = min_t(loff_t, i_size, in ceph_read_iter()
1362 end = min_t(loff_t, end, PAGE_SIZE); in ceph_read_iter()
1421 loff_t pos; in ceph_write_iter()
1422 loff_t limit = max(i_size_read(inode), fsc->max_file_size); in ceph_write_iter()
[all …]
/fs/isofs/
Dcompress.c40 static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, in zisofs_uncompress_block()
41 loff_t block_end, int pcount, in zisofs_uncompress_block()
74 return ((loff_t)pcount) << PAGE_SHIFT; in zisofs_uncompress_block()
204 loff_t start_off, end_off; in zisofs_fill_pages()
205 loff_t block_start, block_end; in zisofs_fill_pages()
209 loff_t poffset = 0; in zisofs_fill_pages()
215 loff_t ret; in zisofs_fill_pages()
225 end_off = min_t(loff_t, start_off + PAGE_SIZE, inode->i_size); in zisofs_fill_pages()

12345678910>>...17