Home
last modified time | relevance | path

Searched refs:isize (Results 1 – 25 of 43) sorted by relevance

12

/fs/xfs/scrub/
Dinode.c207 unsigned long long isize; in xchk_dinode() local
308 isize = be64_to_cpu(dip->di_size); in xchk_dinode()
309 if (isize & (1ULL << 63)) in xchk_dinode()
313 if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) in xchk_dinode()
317 if (S_ISDIR(mode) && (isize == 0 || isize >= XFS_DIR2_SPACE_SIZE)) in xchk_dinode()
321 if (S_ISLNK(mode) && (isize == 0 || isize >= XFS_SYMLINK_MAXLEN)) in xchk_dinode()
330 if (isize >= mp->m_super->s_maxbytes) in xchk_dinode()
/fs/romfs/
Dmmap-nommu.c26 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/
Dquota_v1.c134 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/
Dxfs_file.c292 loff_t isize; in xfs_file_aio_write_checks() local
329 isize = i_size_read(inode); in xfs_file_aio_write_checks()
330 if (iocb->ki_pos > isize) { in xfs_file_aio_write_checks()
352 trace_xfs_zero_eof(ip, isize, iocb->ki_pos - isize); in xfs_file_aio_write_checks()
353 error = iomap_zero_range(inode, isize, iocb->ki_pos - isize, in xfs_file_aio_write_checks()
849 loff_t isize = i_size_read(inode); in xfs_file_fallocate() local
860 if (inode->i_sb->s_maxbytes - isize < len) { in xfs_file_fallocate()
864 new_size = isize + len; in xfs_file_fallocate()
867 if (offset >= isize) { in xfs_file_fallocate()
Dxfs_reflink.c1266 loff_t isize = i_size_read(VFS_I(ip)); in xfs_reflink_zero_posteof() local
1268 if (pos <= isize) in xfs_reflink_zero_posteof()
1271 trace_xfs_zero_eof(ip, isize, pos - isize); in xfs_reflink_zero_posteof()
1272 return iomap_zero_range(VFS_I(ip), isize, pos - isize, NULL, in xfs_reflink_zero_posteof()
1397 xfs_off_t isize) in xfs_reflink_dirty_extents() argument
1443 if (fpos + flen > isize) in xfs_reflink_dirty_extents()
1444 flen = isize - fpos; in xfs_reflink_dirty_extents()
1602 xfs_off_t isize; in xfs_reflink_unshare() local
1615 isize = i_size_read(VFS_I(ip)); in xfs_reflink_unshare()
1617 error = xfs_reflink_dirty_extents(ip, fbno, end, isize); in xfs_reflink_unshare()
Dxfs_pnfs.c195 xfs_off_t isize) in xfs_pnfs_validate_isize() argument
202 error = xfs_bmapi_read(ip, XFS_B_TO_FSBT(ip->i_mount, isize - 1), 1, in xfs_pnfs_validate_isize()
Dxfs_aops.c165 xfs_fsize_t isize; in __xfs_setfilesize() local
168 isize = xfs_new_eof(ip, offset + size); in __xfs_setfilesize()
169 if (!isize) { in __xfs_setfilesize()
177 ip->i_d.di_size = isize; in __xfs_setfilesize()
/fs/udf/
Dfile.c46 loff_t isize = i_size_read(inode); in __udf_adinicb_readpage() local
53 memcpy(kaddr, iinfo->i_ext.i_data + iinfo->i_lenEAttr, isize); in __udf_adinicb_readpage()
54 memset(kaddr + isize, 0, PAGE_SIZE - isize); in __udf_adinicb_readpage()
/fs/reiserfs/
Dxattr.c661 size_t isize; in reiserfs_xattr_get() local
685 isize = i_size_read(d_inode(dentry)); in reiserfs_xattr_get()
689 err = isize - sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_get()
693 if (buffer_size < isize - sizeof(struct reiserfs_xattr_header)) { in reiserfs_xattr_get()
698 while (file_pos < isize) { in reiserfs_xattr_get()
703 if (isize - file_pos > PAGE_SIZE) in reiserfs_xattr_get()
706 chunk = isize - file_pos; in reiserfs_xattr_get()
741 err = isize - sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_get()
743 if (xattr_hash(buffer, isize - sizeof(struct reiserfs_xattr_header)) != in reiserfs_xattr_get()
/fs/ramfs/
Dfile-nommu.c208 loff_t isize; in ramfs_nommu_get_unmapped_area() local
212 isize = i_size_read(inode); in ramfs_nommu_get_unmapped_area()
215 maxpages = (isize + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area()
/fs/
Dioctl.c296 loff_t isize = i_size_read(inode); in __generic_block_fiemap() local
311 if (len >= isize) { in __generic_block_fiemap()
313 len = isize; in __generic_block_fiemap()
350 blk_to_logical(inode, start_blk) >= isize) in __generic_block_fiemap()
418 if (!past_eof && logical + size >= isize) in __generic_block_fiemap()
Dblock_dev.c2060 loff_t isize; in blkdev_fallocate() local
2068 isize = i_size_read(bdev->bd_inode); in blkdev_fallocate()
2069 if (start >= isize) in blkdev_fallocate()
2071 if (end >= isize) { in blkdev_fallocate()
2073 len = isize - start; in blkdev_fallocate()
/fs/jffs2/
Dreadinode.c730 if (unlikely(je32_to_cpu(rd->offset) > je32_to_cpu(rd->isize)) || in read_dnode()
1197 latest_node->isize = cpu_to_je32(0); in jffs2_do_read_inode_internal()
1232 new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize)); in jffs2_do_read_inode_internal()
1233 if (new_size != je32_to_cpu(latest_node->isize)) { in jffs2_do_read_inode_internal()
1235 f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); in jffs2_do_read_inode_internal()
1236 latest_node->isize = cpu_to_je32(new_size); in jffs2_do_read_inode_internal()
1245 if (!je32_to_cpu(latest_node->isize)) in jffs2_do_read_inode_internal()
1246 latest_node->isize = latest_node->dsize; in jffs2_do_read_inode_internal()
Dfile.c177 ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); in jffs2_write_begin()
285 ri->isize = cpu_to_je32((uint32_t)inode->i_size); in jffs2_write_end()
Dwrite.c177 (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/
Dinode.c349 loff_t isize = i_size_read(inode); in jfs_direct_IO() local
352 if (end > isize) in jfs_direct_IO()
/fs/hugetlbfs/
Dinode.c279 loff_t isize; in hugetlbfs_read_iter() local
288 isize = i_size_read(inode); in hugetlbfs_read_iter()
289 if (!isize) in hugetlbfs_read_iter()
291 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter()
295 nr = ((isize - 1) & ~huge_page_mask(h)) + 1; in hugetlbfs_read_iter()
/fs/iomap/
Dbuffered-io.c68 loff_t isize = i_size_read(inode); in iomap_adjust_read_range() local
109 if (orig_pos <= isize && orig_pos + length > isize) { in iomap_adjust_read_range()
110 unsigned end = offset_in_page(isize - 1) >> block_bits; in iomap_adjust_read_range()
/fs/ubifs/
Dfile.c726 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/affs/
Dfile.c858 loff_t isize = inode->i_size; in affs_truncate() local
861 res = mapping->a_ops->write_begin(NULL, mapping, isize, 0, 0, &page, &fsdata); in affs_truncate()
863 res = mapping->a_ops->write_end(NULL, mapping, isize, 0, 0, page, fsdata); in affs_truncate()
/fs/nilfs2/
Dinode.c1001 loff_t isize; in nilfs_fiemap() local
1014 isize = i_size_read(inode); in nilfs_fiemap()
1071 past_eof = ((blkoff << blkbits) >= isize); in nilfs_fiemap()
Drecovery.c516 loff_t isize = inode->i_size; in nilfs_recover_dsync_blocks() local
518 if (pos + blocksize > isize) in nilfs_recover_dsync_blocks()
/fs/btrfs/
Dcompression.c435 u64 isize = i_size_read(inode); in add_ra_bio_pages() local
450 if (isize == 0) in add_ra_bio_pages()
505 size_t zero_offset = offset_in_page(isize); in add_ra_bio_pages()
/fs/ext4/
Dioctl.c63 loff_t isize; in swap_inode_data() local
84 isize = i_size_read(inode1); in swap_inode_data()
86 i_size_write(inode2, isize); in swap_inode_data()
/fs/hfsplus/
Dinode.c141 loff_t isize = i_size_read(inode); in hfsplus_direct_IO() local
144 if (end > isize) in hfsplus_direct_IO()

12