/fs/zonefs/ |
D | super.c | 62 static inline void zonefs_i_size_write(struct inode *inode, loff_t isize) in zonefs_i_size_write() argument 66 i_size_write(inode, isize); in zonefs_i_size_write() 71 if (isize >= zi->i_max_size) in zonefs_i_size_write() 81 loff_t isize; in zonefs_read_iomap_begin() local 90 isize = i_size_read(inode); in zonefs_read_iomap_begin() 91 if (iomap->offset >= isize) { in zonefs_read_iomap_begin() 98 iomap->length = isize - iomap->offset; in zonefs_read_iomap_begin() 117 loff_t isize; in zonefs_write_iomap_begin() local 141 isize = i_size_read(inode); in zonefs_write_iomap_begin() 142 if (iomap->offset >= isize) { in zonefs_write_iomap_begin() [all …]
|
/fs/xfs/scrub/ |
D | inode.c | 233 unsigned long long isize; in xchk_dinode() local 331 isize = be64_to_cpu(dip->di_size); in xchk_dinode() 332 if (isize & (1ULL << 63)) in xchk_dinode() 336 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) in xchk_dinode() 340 if (S_ISDIR(mode) && (isize == 0 || isize >= XFS_DIR2_SPACE_SIZE)) in xchk_dinode() 344 if (S_ISLNK(mode) && (isize == 0 || isize >= XFS_SYMLINK_MAXLEN)) in xchk_dinode() 353 if (isize >= mp->m_super->s_maxbytes) in xchk_dinode()
|
/fs/romfs/ |
D | mmap-nommu.c | 26 unsigned long isize, offset, maxpages, lpages; in romfs_get_unmapped_area() local 34 isize = i_size_read(inode); in romfs_get_unmapped_area() 37 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in romfs_get_unmapped_area()
|
/fs/quota/ |
D | quota_v1.c | 134 loff_t isize; in v1_check_quota_file() local 137 isize = i_size_read(inode); in v1_check_quota_file() 138 if (!isize) in v1_check_quota_file() 140 blocks = isize >> BLOCK_SIZE_BITS; in v1_check_quota_file() 141 off = isize & (BLOCK_SIZE - 1); in v1_check_quota_file()
|
/fs/xfs/ |
D | xfs_file.c | 353 loff_t isize; in xfs_file_write_checks() local 410 isize = i_size_read(inode); in xfs_file_write_checks() 411 if (iocb->ki_pos > isize) { in xfs_file_write_checks() 437 trace_xfs_zero_eof(ip, isize, iocb->ki_pos - isize); in xfs_file_write_checks() 438 error = iomap_zero_range(inode, isize, iocb->ki_pos - isize, in xfs_file_write_checks() 600 size_t isize = i_size_read(VFS_I(ip)); in xfs_file_dio_write_unaligned() local 611 if (iocb->ki_pos > isize || iocb->ki_pos + count >= isize) { in xfs_file_dio_write_unaligned() 985 loff_t isize = i_size_read(inode); in xfs_file_fallocate() local 996 if (inode->i_sb->s_maxbytes - isize < len) { in xfs_file_fallocate() 1000 new_size = isize + len; in xfs_file_fallocate() [all …]
|
D | xfs_icreate_item.c | 154 unsigned int isize; in xlog_recover_icreate_commit_pass2() local 182 isize = be32_to_cpu(icl->icl_isize); in xlog_recover_icreate_commit_pass2() 183 if (isize != mp->m_sb.sb_inodesize) { in xlog_recover_icreate_commit_pass2()
|
D | xfs_aops.c | 53 xfs_fsize_t isize; in xfs_setfilesize() local 61 isize = xfs_new_eof(ip, offset + size); in xfs_setfilesize() 62 if (!isize) { in xfs_setfilesize() 70 ip->i_disk_size = isize; in xfs_setfilesize()
|
D | xfs_reflink.c | 1400 loff_t isize = i_size_read(VFS_I(ip)); in xfs_reflink_zero_posteof() local 1402 if (pos <= isize) in xfs_reflink_zero_posteof() 1405 trace_xfs_zero_eof(ip, isize, pos - isize); in xfs_reflink_zero_posteof() 1406 return iomap_zero_range(VFS_I(ip), isize, pos - isize, NULL, in xfs_reflink_zero_posteof()
|
D | xfs_pnfs.c | 192 xfs_off_t isize) in xfs_pnfs_validate_isize() argument 199 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize()
|
D | xfs_inode_item_recover.c | 213 uint isize; in xlog_recover_inode_commit_pass2() local 369 isize = xfs_log_dinode_size(mp); in xlog_recover_inode_commit_pass2() 370 if (unlikely(item->ri_buf[1].i_len > isize)) { in xlog_recover_inode_commit_pass2()
|
/fs/udf/ |
D | file.c | 46 loff_t isize = i_size_read(inode); in __udf_adinicb_readpage() local 53 memcpy(kaddr, iinfo->i_data + iinfo->i_lenEAttr, isize); in __udf_adinicb_readpage() 54 memset(kaddr + isize, 0, PAGE_SIZE - isize); in __udf_adinicb_readpage()
|
/fs/reiserfs/ |
D | xattr.c | 661 size_t isize; in reiserfs_xattr_get() local 692 isize = i_size_read(d_inode(dentry)); in reiserfs_xattr_get() 696 err = isize - sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_get() 700 if (buffer_size < isize - sizeof(struct reiserfs_xattr_header)) { in reiserfs_xattr_get() 705 while (file_pos < isize) { in reiserfs_xattr_get() 710 if (isize - file_pos > PAGE_SIZE) in reiserfs_xattr_get() 713 chunk = isize - file_pos; in reiserfs_xattr_get() 748 err = isize - sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_get() 750 if (xattr_hash(buffer, isize - sizeof(struct reiserfs_xattr_header)) != in reiserfs_xattr_get()
|
/fs/ramfs/ |
D | file-nommu.c | 209 loff_t isize; in ramfs_nommu_get_unmapped_area() local 213 isize = i_size_read(inode); in ramfs_nommu_get_unmapped_area() 216 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area()
|
/fs/ |
D | remap_range.c | 305 loff_t isize = i_size_read(inode_in); in generic_remap_file_range_prep() local 307 if ((remap_flags & REMAP_FILE_DEDUP) || pos_in == isize) in generic_remap_file_range_prep() 309 if (pos_in > isize) in generic_remap_file_range_prep() 311 *len = isize - pos_in; in generic_remap_file_range_prep()
|
/fs/jffs2/ |
D | readinode.c | 746 if (unlikely(je32_to_cpu(rd->offset) > je32_to_cpu(rd->isize)) || in read_dnode() 1213 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal() 1248 new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize)); in jffs2_do_read_inode_internal() 1249 if (new_size != je32_to_cpu(latest_node->isize)) { in jffs2_do_read_inode_internal() 1251 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); in jffs2_do_read_inode_internal() 1252 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal() 1261 if (!je32_to_cpu(latest_node->isize)) in jffs2_do_read_inode_internal() 1262 latest_node->isize = latest_node->dsize; in jffs2_do_read_inode_internal()
|
D | file.c | 172 ri.isize = cpu_to_je32((uint32_t)pos); in jffs2_write_begin() 295 ri->isize = cpu_to_je32((uint32_t)inode->i_size); in jffs2_write_end()
|
D | write.c | 177 (je32_to_cpu(ri->dsize)+je32_to_cpu(ri->offset) == je32_to_cpu(ri->isize)))) { in jffs2_write_dnode() 382 ri->isize = cpu_to_je32(max(je32_to_cpu(ri->isize), offset + datalen)); in jffs2_write_inode_range()
|
/fs/jfs/ |
D | inode.c | 350 loff_t isize = i_size_read(inode); in jfs_direct_IO() local 353 if (end > isize) in jfs_direct_IO()
|
/fs/nfs/ |
D | file.c | 486 long long isize; in nfs_swap_activate() local 493 isize = inode->i_size; in nfs_swap_activate() 495 if (blocks*512 < isize) { in nfs_swap_activate()
|
/fs/hugetlbfs/ |
D | inode.c | 342 loff_t isize; in hugetlbfs_read_iter() local 351 isize = i_size_read(inode); in hugetlbfs_read_iter() 352 if (!isize) in hugetlbfs_read_iter() 354 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter() 358 nr = ((isize - 1) & ~huge_page_mask(h)) + 1; in hugetlbfs_read_iter()
|
/fs/ceph/ |
D | inode.c | 632 loff_t isize = i_size_read(inode); in ceph_fill_file_size() local 635 (truncate_seq == ci->i_truncate_seq && size > isize)) { in ceph_fill_file_size() 636 dout("size %lld -> %llu\n", isize, size); in ceph_fill_file_size() 2107 loff_t isize = i_size_read(inode); in __ceph_setattr() local 2109 dout("setattr %p size %lld -> %lld\n", inode, isize, attr->ia_size); in __ceph_setattr() 2110 if ((issued & CEPH_CAP_FILE_EXCL) && attr->ia_size > isize) { in __ceph_setattr() 2117 attr->ia_size != isize) { in __ceph_setattr() 2119 req->r_args.setattr.old_size = cpu_to_le64(isize); in __ceph_setattr()
|
/fs/ubifs/ |
D | file.c | 726 loff_t isize; in ubifs_do_bulk_read() local 778 isize = i_size_read(inode); in ubifs_do_bulk_read() 779 if (isize == 0) in ubifs_do_bulk_read() 781 end_index = ((isize - 1) >> PAGE_SHIFT); in ubifs_do_bulk_read()
|
/fs/iomap/ |
D | buffered-io.c | 92 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() local 133 if (orig_pos <= isize && orig_pos + length > isize) { in iomap_adjust_read_range() 134 unsigned end = offset_in_page(isize - 1) >> block_bits; in iomap_adjust_read_range()
|
/fs/f2fs/ |
D | file.c | 423 loff_t isize; in f2fs_seek_block() local 428 isize = i_size_read(inode); in f2fs_seek_block() 429 if (offset >= isize) in f2fs_seek_block() 435 data_ofs = isize; in f2fs_seek_block() 445 for (; data_ofs < isize; data_ofs = (loff_t)pgofs << PAGE_SHIFT) { in f2fs_seek_block() 489 if (whence == SEEK_HOLE && data_ofs > isize) in f2fs_seek_block() 490 data_ofs = isize; in f2fs_seek_block() 2002 loff_t isize; in f2fs_ioc_start_atomic_write() local 2081 isize = i_size_read(inode); in f2fs_ioc_start_atomic_write() 2082 fi->original_i_size = isize; in f2fs_ioc_start_atomic_write() [all …]
|
/fs/ocfs2/ |
D | file.c | 1584 loff_t isize = i_size_read(inode); in ocfs2_zero_partial_clusters() local 1606 if (end > isize) { in ocfs2_zero_partial_clusters() 1615 ret = ocfs2_zeroout_partial_cluster(inode, isize, in ocfs2_zero_partial_clusters() 1616 end - isize); in ocfs2_zero_partial_clusters() 1621 if (start >= isize) in ocfs2_zero_partial_clusters() 1623 end = isize; in ocfs2_zero_partial_clusters()
|