Lines Matching defs:i_size

160 	return S_ISLNK(inode->i_mode) && inode->i_size &&
161 (inode->i_size < EXT4_N_BLOCKS * 4);
273 * Set inode->i_size to 0 before calling ext4_truncate(). We need
274 * special handling of symlinks here because i_size is used to
276 * block mappings. Setting i_size to 0 will remove its fast symlink
281 inode->i_size = 0;
1224 bool extended = (pos + len > inode->i_size) &&
1230 * outside i_size. Trim these off again. Don't need
1289 loff_t old_size = inode->i_size;
1302 * it's important to update i_size while still holding page lock:
1303 * page writeout could otherwise come in and zero beyond i_size.
1306 * blocks are being written past EOF, so skip the i_size update.
1324 if (pos + len > inode->i_size && !verity && ext4_can_truncate(inode))
1327 * inode->i_size. So truncate them
1335 if (pos + len > inode->i_size && !verity) {
1390 loff_t old_size = inode->i_size;
1435 if (pos + len > inode->i_size && !verity && ext4_can_truncate(inode))
1438 * inode->i_size. So truncate them
1445 if (pos + len > inode->i_size && !verity) {
2116 * against i_size changes and the page can be writeably mapped into
2117 * page tables. So an application can be growing i_size and writing
2121 * clear_page_dirty_for_io() we are safe to sample i_size for
2124 * clear_page_dirty_for_io() to make sure i_size is really sampled only
2528 * truncate are avoided by checking i_size under i_data_sem.
2533 loff_t i_size;
2536 i_size = i_size_read(inode);
2537 if (disksize > i_size)
2538 disksize = i_size;
3036 * outside i_size. Trim these off again. Don't need
3039 if (pos + len > inode->i_size)
3101 * i_size. We also know that if i_disksize < i_size, there are
3102 * delalloc writes pending in the range upto i_size. If the end of
3103 * the current write is <= i_size, there's no need to touch
3104 * i_disksize since writeback will push i_disksize upto i_size
3105 * eventually. If the end of the current write is > i_size and
3115 if (copied && new_i_size > inode->i_size &&
3421 * We use i_size instead of i_disksize here because delalloc writeback
3423 * i_disksize out to i_size. This could be beyond where direct I/O is
4026 /* No need to punch hole beyond i_size */
4027 if (offset >= inode->i_size)
4031 * If the hole extends beyond i_size, set the hole
4032 * to end after the page that contains i_size
4034 if (offset + length > inode->i_size) {
4035 length = inode->i_size +
4036 PAGE_SIZE - (inode->i_size & (PAGE_SIZE - 1)) -
4195 * The committed inode has the new, desired i_size (which is the same as
4223 if (inode->i_size == 0 && !test_opt(inode->i_sb, NO_AUTO_DA_ALLOC))
4235 if (inode->i_size & (inode->i_sb->s_blocksize - 1)) {
4252 if (inode->i_size & (inode->i_sb->s_blocksize - 1))
4253 ext4_block_truncate_page(handle, mapping, inode->i_size);
4929 inode->i_size = ext4_isize(sb, raw_inode);
4932 "iget: bad i_size value: %lld", size);
4948 ei->i_disksize = inode->i_size;
5063 nd_terminate_link(ei->i_data, inode->i_size,
5270 * inode->i_size = expr;
5273 * and the new i_size will be lost. Plus the inode will no longer be on the
5328 * buffers that are attached to a page stradding i_size and are undergoing
5339 offset = inode->i_size & (PAGE_SIZE - 1);
5353 inode->i_size >> PAGE_SHIFT);
5379 * shrinks i_size, we put the inode on the orphan list and modify
5472 loff_t oldsize = inode->i_size;
5474 int shrink = (attr->ia_size < inode->i_size);
5487 if (IS_I_VERSION(inode) && attr->ia_size != inode->i_size)
5512 if (attr->ia_size != inode->i_size) {
5551 * We have to update i_size under i_data_sem together
5565 inode->i_size);
5575 truncate_pagecache(inode, inode->i_size);
5577 * Call ext4_truncate() even if i_size didn't change to
6018 * i_size has been changed by generic_commit_write() and we thus need