/fs/ |
D | read_write.c | 54 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 …]
|
D | remap_range.c | 29 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() 108 if (unlikely((loff_t) (pos + len) < 0)) in remap_verify_area() 112 loff_t end = len ? pos + len - 1 : OFFSET_MAX; in remap_verify_area() 137 loff_t pos_out, in generic_remap_check_len() 138 loff_t *len, in generic_remap_check_len() [all …]
|
D | sync.c | 194 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range() 243 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range() 248 loff_t endbyte; /* inclusive */ in sync_file_range() 370 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() 385 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument 394 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
|
D | seq_file.c | 90 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() 546 static void *single_start(struct seq_file *p, loff_t *pos) in single_start() 551 static void *single_next(struct seq_file *p, void *v, loff_t *pos) in single_next() 891 struct list_head *seq_list_start(struct list_head *head, loff_t pos) in seq_list_start() 903 struct list_head *seq_list_start_head(struct list_head *head, loff_t pos) in seq_list_start_head() [all …]
|
D | libfs.c | 103 loff_t count, in scan_positives() 136 loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) in dcache_dir_lseek() 224 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() 523 loff_t pos, unsigned len, unsigned flags, in simple_write_begin() 569 loff_t pos, unsigned len, unsigned copied, in simple_write_end() 573 loff_t last_pos = pos + copied; in simple_write_end() 717 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() 720 loff_t pos = *ppos; in simple_read_from_buffer() 752 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer() 755 loff_t pos = *ppos; in simple_write_to_buffer() [all …]
|
/fs/iomap/ |
D | seek.c | 18 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 …]
|
D | buffered-io.c | 89 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() 229 struct iomap *iomap, loff_t pos) in iomap_block_needs_zeroing() 236 static loff_t 237 iomap_readpage_actor(struct inode *inode, loff_t pos, loff_t length, void *data, in iomap_readpage_actor() 244 loff_t orig_pos = pos; in iomap_readpage_actor() 321 loff_t ret; in iomap_readpage() 353 static loff_t [all …]
|
D | fiemap.c | 46 static loff_t 47 iomap_fiemap_actor(struct inode *inode, loff_t pos, loff_t length, void *data, in iomap_fiemap_actor() 51 loff_t ret = length; in iomap_fiemap_actor() 72 loff_t ret; in iomap_fiemap() 107 static loff_t 108 iomap_bmap_actor(struct inode *inode, loff_t pos, loff_t length, in iomap_bmap_actor() 126 loff_t pos = bno << inode->i_blkbits; in iomap_bmap()
|
D | direct-io.c | 30 loff_t i_size; 31 loff_t size; 64 struct bio *bio, loff_t pos) in iomap_dio_submit_bio() 85 loff_t offset = iocb->ki_pos; in iomap_dio_complete() 186 iomap_dio_zero(struct iomap_dio *dio, struct iomap *iomap, loff_t pos, in iomap_dio_zero() 208 static loff_t 209 iomap_dio_bio_actor(struct inode *inode, loff_t pos, loff_t length, in iomap_dio_bio_actor() 344 static loff_t 345 iomap_dio_hole_actor(loff_t length, struct iomap_dio *dio) in iomap_dio_hole_actor() 352 static loff_t [all …]
|
/fs/incfs/ |
D | format.c | 45 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 …]
|
D | format.h | 309 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/ |
D | nfs42.h | 19 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);
|
D | nfs4file.c | 138 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() 194 static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in, in nfs4_copy_file_range() 195 struct file *file_out, loff_t pos_out, in nfs4_copy_file_range() 208 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() 210 loff_t ret; in nfs4_file_llseek() 224 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate() 244 static loff_t nfs42_remap_file_range(struct file *src_file, loff_t src_off, in nfs42_remap_file_range() 245 struct file *dst_file, loff_t dst_off, loff_t count, in nfs42_remap_file_range()
|
/fs/xfs/ |
D | xfs_reflink.h | 42 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);
|
D | xfs_file.c | 42 loff_t pos, in xfs_is_falloc_aligned() 109 loff_t start, in xfs_dir_fsync() 110 loff_t end, in xfs_dir_fsync() 170 loff_t start, in xfs_file_fsync() 171 loff_t end, in xfs_file_fsync() 341 loff_t isize; in xfs_file_aio_write_checks() 427 loff_t offset = iocb->ki_pos; in xfs_dio_write_end_io() 626 loff_t pos; in xfs_file_dax_write() 847 loff_t offset, in xfs_file_fallocate() 848 loff_t len) in xfs_file_fallocate() [all …]
|
/fs/ecryptfs/ |
D | read_write.c | 28 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/ |
D | dnode.c | 12 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/ |
D | vfs.h | 42 typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned); 59 struct file *, loff_t, loff_t, int); 77 loff_t, unsigned long, __be32 *verf); 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/cifs/ |
D | cifsfs.h | 113 extern int cifs_fsync(struct file *, loff_t, loff_t, int); 114 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int); 150 struct file *src_file, loff_t off, 151 struct file *dst_file, loff_t destoff, 155 extern void cifs_setsize(struct inode *inode, loff_t offset); 156 extern int cifs_truncate_page(struct address_space *mapping, loff_t from);
|
/fs/overlayfs/ |
D | file.c | 179 static loff_t ovl_llseek(struct file *file, loff_t offset, int whence) in ovl_llseek() 184 loff_t ret; in ovl_llseek() 419 loff_t *ppos, size_t len, unsigned int flags) in ovl_splice_write() 455 static int ovl_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ovl_fsync() 512 static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len) in ovl_fallocate() 545 static int ovl_fadvise(struct file *file, loff_t offset, loff_t len, int advice) in ovl_fadvise() 676 static loff_t ovl_copyfile(struct file *file_in, loff_t pos_in, in ovl_copyfile() 677 struct file *file_out, loff_t pos_out, in ovl_copyfile() 678 loff_t len, unsigned int flags, enum ovl_copyop op) in ovl_copyfile() 683 loff_t ret; in ovl_copyfile() [all …]
|
/fs/fat/ |
D | fat.h | 120 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/btrfs/ |
D | reflink.h | 8 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);
|
/fs/gfs2/ |
D | file.c | 56 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() 748 static int gfs2_fsync(struct file *file, loff_t start, loff_t end, in gfs2_fsync() 817 loff_t offset = iocb->ki_pos; in gfs2_file_direct_write() 979 static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len, in fallocate_chunk() 984 loff_t end = offset + len; in fallocate_chunk() 1034 static void calc_max_reserv(struct gfs2_inode *ip, loff_t *len, in calc_max_reserv() 1038 loff_t max = *len; in calc_max_reserv() [all …]
|
/fs/zonefs/ |
D | zonefs.h | 56 loff_t i_wpoffset; 59 loff_t i_max_size; 62 loff_t i_zone_size; 183 loff_t s_blocks; 184 loff_t s_used_blocks;
|
/fs/isofs/ |
D | compress.c | 40 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()
|