Home
last modified time | relevance | path

Searched refs:i_size_read (Results 1 – 25 of 230) sorted by relevance

12345678910

/linux/fs/ecryptfs/
H A Dmmap.c242 if ((i_size_read(inode) / PAGE_SIZE) != folio->index) in fill_zeros_to_end_of_page()
244 end_byte_in_page = i_size_read(inode) % PAGE_SIZE; in fill_zeros_to_end_of_page()
327 >= i_size_read(mapping->host)) { in ecryptfs_write_begin()
347 if (prev_page_end_size > i_size_read(mapping->host)) { in ecryptfs_write_begin()
361 if ((i_size_read(mapping->host) == prev_page_end_size) in ecryptfs_write_begin()
389 put_unaligned_be64(i_size_read(ecryptfs_inode), file_size_virt); in ecryptfs_write_inode_size_to_header()
429 put_unaligned_be64(i_size_read(ecryptfs_inode), xattr_virt); in ecryptfs_write_inode_size_to_xattr()
508 if (pos + copied > i_size_read(ecryptfs_inode)) { in ecryptfs_write_end()
512 (unsigned long long)i_size_read(ecryptfs_inode)); in ecryptfs_write_end()
/linux/fs/ceph/
H A Dcache.c38 i_size_read(inode)); in ceph_fscache_register_inode_cookie()
60 loff_t i_size = i_size_read(inode); in ceph_fscache_unuse_cookie()
72 loff_t i_size = i_size_read(inode); in ceph_fscache_update()
82 &ci->i_version, i_size_read(inode), in ceph_fscache_invalidate()
/linux/fs/ocfs2/
H A Daops.c198 …mlog(ML_ERROR, "Size %llu, clusters %u\n", (unsigned long long)i_size_read(inode), OCFS2_I(inode)-… in ocfs2_get_block()
204 past_eof = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode)); in ocfs2_get_block()
231 size = i_size_read(inode); in ocfs2_read_inline_data()
317 if (start >= i_size_read(inode)) { in ocfs2_read_folio()
377 if (readahead_pos(rac) >= i_size_read(inode)) in ocfs2_readahead()
575 if (i_size_read(inode) > offset) in ocfs2_should_read_blk()
954 new = new | ((i_size_read(inode) <= page_offset(page)) && in ocfs2_prepare_page_for_write()
1049 last_byte = max(user_pos + user_len, i_size_read(inode)); in ocfs2_grab_pages_for_write()
1570 if (oi->ip_clusters != 0 || i_size_read(inode) != 0) in ocfs2_try_to_write_inline_data()
1616 if (newsize <= i_size_read(inode)) in ocfs2_expand_nonsparse_inode()
[all …]
H A Dfile.c454 mlog_bug_on_msg(le64_to_cpu(fe->i_size) != i_size_read(inode), in ocfs2_truncate_file()
458 i_size_read(inode), in ocfs2_truncate_file()
489 i_size_read(inode), 1); in ocfs2_truncate_file()
608 (unsigned long long)i_size_read(inode), in ocfs2_extend_allocation()
679 (unsigned long long)i_size_read(inode)); in ocfs2_extend_allocation()
826 di->i_size = cpu_to_le64((u64)i_size_read(inode)); in ocfs2_write_zero_page()
973 zero_start = ocfs2_align_bytes_to_blocks(sb, i_size_read(inode)); in ocfs2_zero_extend()
976 (unsigned long long)i_size_read(inode)); in ocfs2_zero_extend()
1061 if (i_size_read(inode) == new_i_size) in ocfs2_extend_file()
1063 BUG_ON(new_i_size < i_size_read(inode)); in ocfs2_extend_file()
[all …]
H A Ddir.c415 data->id_data, i_size_read(dir), res_dir); in ocfs2_find_entry_id()
687 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; in ocfs2_find_entry_el()
754 nblocks = i_size_read(dir) >> sb->s_blocksize_bits; in ocfs2_find_entry_el()
1371 i_size_read(dir)); in ocfs2_delete_entry_id()
1630 size = i_size_read(dir); in __ocfs2_add_entry()
1759 while (ctx->pos < i_size_read(inode)) { in ocfs2_dir_foreach_blk_id()
1765 for (i = 0; i < i_size_read(inode) && i < offset; ) { in ocfs2_dir_foreach_blk_id()
1785 i_size_read(inode), ctx->pos)) { in ocfs2_dir_foreach_blk_id()
1787 ctx->pos = i_size_read(inode); in ocfs2_dir_foreach_blk_id()
1825 while (ctx->pos < i_size_read(inode)) { in ocfs2_dir_foreach_blk_el()
[all …]
H A Dquota_local.c140 if (i_size_read(inode) >> inode->i_sb->s_blocksize_bits <= v_block) in ocfs2_read_quota_block()
145 (unsigned long long)i_size_read(inode)); in ocfs2_read_quota_block()
981 i_size_read(lqinode) + 2 * sb->s_blocksize, in ocfs2_local_quota_add_chunk()
982 i_size_read(lqinode)); in ocfs2_local_quota_add_chunk()
988 i_size_read(lqinode) + 2 * sb->s_blocksize); in ocfs2_local_quota_add_chunk()
1124 i_size_read(lqinode) + sb->s_blocksize, in ocfs2_extend_local_quota_file()
1125 i_size_read(lqinode)); in ocfs2_extend_local_quota_file()
1131 i_size_read(lqinode) + sb->s_blocksize); in ocfs2_extend_local_quota_file()
/linux/fs/zonefs/
H A Dfile.c43 isize = i_size_read(inode); in zonefs_read_iomap_begin()
94 isize = i_size_read(inode); in zonefs_write_iomap_begin()
135 if (WARN_ON_ONCE(offset >= i_size_read(inode))) in zonefs_write_map_blocks()
219 old_isize = i_size_read(inode); in zonefs_file_truncate()
335 loff_t isize = i_size_read(file_inode(file)); in zonefs_file_llseek()
370 if (i_size_read(inode) < iocb->ki_pos + size) { in zonefs_file_write_dio_end_io()
643 isize = i_size_read(inode); in zonefs_file_read_iter()
695 isize = i_size_read(inode); in zonefs_file_splice_read()
748 if (i_size_read(inode) < z->z_capacity) { in zonefs_seq_file_write_open()
/linux/fs/squashfs/
H A Dfile.c232 int skip = calculate_skip(i_size_read(inode) >> msblk->block_log); in fill_meta_index()
452 int file_end = i_size_read(inode) >> msblk->block_log; in squashfs_read_folio()
454 (i_size_read(inode) & (msblk->block_size - 1)) : in squashfs_read_folio()
462 if (page->index >= ((i_size_read(inode) + PAGE_SIZE - 1) >> in squashfs_read_folio()
578 loff_t file_end = i_size_read(inode) >> msblk->block_log; in squashfs_readahead()
594 (i_size_read(inode) & (msblk->block_size - 1)) : in squashfs_readahead()
603 if (readahead_pos(ractl) >= i_size_read(inode)) in squashfs_readahead()
/linux/fs/exfat/
H A Dfile.c159 num_clusters_new = EXFAT_B_TO_CLU_ROUND_UP(i_size_read(inode), sbi); in __exfat_truncate()
164 if (i_size_read(inode) > 0) { in __exfat_truncate()
194 if (i_size_read(inode) < ei->valid_size) in __exfat_truncate()
195 ei->valid_size = i_size_read(inode); in __exfat_truncate()
261 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_truncate()
294 attr->ia_size > i_size_read(inode)) { in exfat_setattr()
635 end = min_t(loff_t, i_size_read(inode), in exfat_page_mkwrite()
H A Dnamei.c281 if (EXFAT_B_TO_DEN(i_size_read(inode)) >= MAX_EXFAT_DENTRIES) { in exfat_check_max_dentries()
435 EXFAT_B_TO_CLU(i_size_read(inode), sbi), ei->flags); in __exfat_resolve_path()
548 loff_t size = i_size_read(dir); in exfat_create()
562 if (IS_DIRSYNC(dir) && size != i_size_read(dir)) in exfat_create()
669 i_size_read(dir), ei->dir.dir, ei->entry); in exfat_find()
830 loff_t size = i_size_read(dir); in exfat_mkdir()
844 if (IS_DIRSYNC(dir) && size != i_size_read(dir)) in exfat_mkdir()
940 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(inode), sbi), ei->flags); in exfat_rmdir()
1143 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(old_parent_inode), sbi), in __exfat_rename()
1172 EXFAT_B_TO_CLU_ROUND_UP(i_size_read(new_inode), in __exfat_rename()
[all …]
H A Dinode.c73 on_disk_size = i_size_read(inode); in __exfat_write_inode()
279 last_block = EXFAT_B_TO_BLK_ROUND_UP(i_size_read(inode), sb); in exfat_get_block()
397 if (ei->valid_size < i_size_read(inode) && in exfat_readahead()
418 if (to > i_size_read(inode)) { in exfat_write_failed()
419 truncate_pagecache(inode, i_size_read(inode)); in exfat_write_failed()
639 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_fill_inode()
/linux/fs/xfs/
H A Dxfs_file.c379 isize = i_size_read(VFS_I(ip)); in xfs_file_write_zero_eof()
482 if (iocb->ki_pos > i_size_read(inode)) { in xfs_file_write_checks()
564 if (offset + size <= i_size_read(inode)) in xfs_dio_write_end_io()
568 if (offset + size > i_size_read(inode)) { in xfs_dio_write_end_io()
645 size_t isize = i_size_read(VFS_I(ip)); in xfs_file_dio_write_unaligned()
751 if (ret > 0 && iocb->ki_pos > i_size_read(inode)) { in xfs_file_dax_write()
895 if ((mode & FALLOC_FL_KEEP_SIZE) || offset + len <= i_size_read(inode)) in xfs_falloc_newsize()
924 loff_t new_size = i_size_read(inode) - len; in xfs_falloc_collapse_range()
934 if (offset + len >= i_size_read(inode)) in xfs_falloc_collapse_range()
950 loff_t isize = i_size_read(inode); in xfs_falloc_insert_range()
[all …]
H A Dxfs_exchrange.c298 temp = i_size_read(VFS_I(ip2)); in xfs_exchrange_mappings()
299 i_size_write(VFS_I(ip2), i_size_read(VFS_I(ip1))); in xfs_exchrange_mappings()
368 size1 = i_size_read(inode1); in xfs_exchange_range_checks()
369 size2 = i_size_read(inode2); in xfs_exchange_range_checks()
551 size1 = i_size_read(VFS_I(ip1)); in xfs_exchrange_check_rtalign()
552 size2 = i_size_read(VFS_I(ip2)); in xfs_exchrange_check_rtalign()
/linux/fs/iomap/
H A Dseek.c36 loff_t size = i_size_read(inode); in iomap_seek_hole()
82 loff_t size = i_size_read(inode); in iomap_seek_data()
/linux/fs/
H A Dremap_range.c51 size_in = i_size_read(inode_in); in generic_remap_checks()
52 size_out = i_size_read(inode_out); in generic_remap_checks()
145 if (pos_out + *len < i_size_read(inode_out)) in generic_remap_check_len()
302 loff_t isize = i_size_read(inode_in); in __generic_remap_file_range_prep()
526 if (off + len > i_size_read(src)) in vfs_dedupe_file_range()
H A Dstack.c22 i_size = i_size_read(src); in fsstack_copy_inode_size()
/linux/fs/netfs/
H A Dmisc.c208 loff_t i_size = i_size_read(inode); in netfs_clear_inode_writeback()
232 unsigned long long i_size = i_size_read(&ctx->inode); in netfs_invalidate_folio()
313 end = umin(folio_pos(folio) + folio_size(folio), i_size_read(&ctx->inode)); in netfs_release_folio()
/linux/fs/nfs/
H A Dfscache.c182 i_size_read(inode)); in nfs_fscache_init_inode()
228 fscache_invalidate(cookie, &auxdata, i_size_read(inode), in nfs_fscache_open_file()
238 loff_t i_size = i_size_read(inode); in nfs_fscache_release_file()
/linux/fs/smb/client/
H A Dfscache.c144 i_size_read(&cifsi->netfs.inode)); in cifs_fscache_get_inode_cookie()
153 loff_t i_size = i_size_read(inode); in cifs_fscache_unuse_inode_cookie()
/linux/fs/f2fs/
H A Dfile.c110 folio_pos(folio) > i_size_read(inode) || in f2fs_vm_page_mkwrite()
147 i_size_read(inode)) { in f2fs_vm_page_mkwrite()
150 offset = i_size_read(inode) & ~PAGE_MASK; in f2fs_vm_page_mkwrite()
444 isize = i_size_read(inode); in f2fs_seek_block()
524 maxbytes, i_size_read(inode)); in f2fs_llseek()
574 truncate_setsize(inode, i_size_read(inode)); in finish_preallocate_blocks()
847 err = f2fs_truncate_blocks(inode, i_size_read(inode), true); in f2fs_truncate()
1041 loff_t old_size = i_size_read(inode); in f2fs_setattr()
1078 fi->last_disk_size = i_size_read(inode); in f2fs_setattr()
1453 pgoff_t nrpages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_do_collapse()
[all …]
/linux/fs/sysv/
H A Dfile.c43 attr->ia_size != i_size_read(inode)) { in sysv_setattr()
/linux/fs/minix/
H A Dfile.c36 attr->ia_size != i_size_read(inode)) { in minix_setattr()
/linux/fs/xfs/scrub/
H A Dxfile.c190 if (pos + count > i_size_read(inode)) in xfile_store()
266 if ((flags & XFILE_ALLOC) && pos + len > i_size_read(inode)) in xfile_get_folio()
/linux/fs/ext4/
H A Dfile.c210 if (offset + len > i_size_read(inode) || in ext4_extending_io()
224 if (pos + len > i_size_read(inode)) in ext4_overwrite_io()
394 pos + size <= i_size_read(inode)) in ext4_dio_write_end_io()
515 if (offset + count > i_size_read(inode)) in ext4_dio_write_iter()
909 maxbytes, i_size_read(inode)); in ext4_llseek()
/linux/fs/udf/
H A Dfile.c52 size = i_size_read(inode); in udf_page_mkwrite()
234 attr->ia_size != i_size_read(inode)) { in udf_setattr()

12345678910