Lines Matching defs:i_size
157 return S_ISLNK(inode->i_mode) && inode->i_size &&
158 (inode->i_size < EXT4_N_BLOCKS * 4);
242 * Set inode->i_size to 0 before calling ext4_truncate(). We need
243 * special handling of symlinks here because i_size is used to
245 * block mappings. Setting i_size to 0 will remove its fast symlink
250 inode->i_size = 0;
1210 bool extended = (pos + len > inode->i_size) &&
1216 * outside i_size. Trim these off again. Don't need
1277 loff_t old_size = inode->i_size;
1291 * it's important to update i_size while still holding folio lock:
1292 * page writeout could otherwise come in and zero beyond i_size.
1295 * blocks are being written past EOF, so skip the i_size update.
1313 if (pos + len > inode->i_size && !verity && ext4_can_truncate(inode))
1316 * inode->i_size. So truncate them
1324 if (pos + len > inode->i_size && !verity) {
1381 loff_t old_size = inode->i_size;
1428 if (pos + len > inode->i_size && !verity && ext4_can_truncate(inode))
1431 * inode->i_size. So truncate them
1438 if (pos + len > inode->i_size && !verity) {
1861 * against i_size changes and the page can be writeably mapped into
1862 * page tables. So an application can be growing i_size and writing
1866 * folio_clear_dirty_for_io() we are safe to sample i_size for
1869 * folio_clear_dirty_for_io() to make sure i_size is really sampled only
2270 * truncate are avoided by checking i_size under i_data_sem.
2275 loff_t i_size;
2278 i_size = i_size_read(inode);
2279 if (disksize > i_size)
2280 disksize = i_size;
2911 * outside i_size. Trim these off again. Don't need
2914 if (pos + len > inode->i_size)
2955 loff_t old_size = inode->i_size;
2967 * It's important to update i_size while still holding page lock,
2969 * i_size.
2972 * i_size. We also know that if i_disksize < i_size, there are
2973 * delalloc writes pending in the range up to i_size. If the end of
2974 * the current write is <= i_size, there's no need to touch
2975 * i_disksize since writeback will push i_disksize up to i_size
2976 * eventually. If the end of the current write is > i_size and
2981 if (new_i_size > inode->i_size) {
3312 * We use i_size instead of i_disksize here because delalloc writeback
3314 * i_disksize out to i_size. This could be beyond where direct I/O is
3930 /* No need to punch hole beyond i_size */
3931 if (offset >= inode->i_size)
3935 * If the hole extends beyond i_size, set the hole
3936 * to end after the page that contains i_size
3938 if (offset + length > inode->i_size) {
3939 length = inode->i_size +
3940 PAGE_SIZE - (inode->i_size & (PAGE_SIZE - 1)) -
4095 * The committed inode has the new, desired i_size (which is the same as
4123 if (inode->i_size == 0 && !test_opt(inode->i_sb, NO_AUTO_DA_ALLOC))
4135 if (inode->i_size & (inode->i_sb->s_blocksize - 1)) {
4152 if (inode->i_size & (inode->i_sb->s_blocksize - 1))
4153 ext4_block_truncate_page(handle, mapping, inode->i_size);
4834 inode->i_size = ext4_isize(sb, raw_inode);
4837 "iget: bad i_size value: %lld", size);
4853 ei->i_disksize = inode->i_size;
4967 nd_terminate_link(ei->i_data, inode->i_size,
5173 * inode->i_size = expr;
5176 * and the new i_size will be lost. Plus the inode will no longer be on the
5230 * buffers that are attached to a folio straddling i_size and are undergoing
5240 offset = inode->i_size & (PAGE_SIZE - 1);
5254 inode->i_size >> PAGE_SHIFT);
5280 * shrinks i_size, we put the inode on the orphan list and modify
5373 loff_t oldsize = inode->i_size;
5375 int shrink = (attr->ia_size < inode->i_size);
5388 if (attr->ia_size == inode->i_size)
5413 if (attr->ia_size != inode->i_size) {
5450 * We have to update i_size under i_data_sem together
5464 inode->i_size);
5474 truncate_pagecache(inode, inode->i_size);
5476 * Call ext4_truncate() even if i_size didn't change to
5951 * i_size has been changed by generic_commit_write() and we thus need