Lines Matching defs:i_size
518 u64 i_size;
589 * We're an inline extent, so nobody can extend the file past i_size
592 * We must do any i_size and inode updates before we unlock the pages.
595 i_size = i_size_read(&inode->vfs_inode);
596 if (update_i_size && size > i_size) {
598 i_size = size;
600 inode->disk_i_size = i_size;
628 * i_size, is no larger than a sector (decompressed), and the (possibly
840 u64 i_size;
860 * We need to save i_size before now because it could change in between
862 * unlock the page in truncate and fallocate, and then modify the i_size
869 i_size = i_size_read(&inode->vfs_inode);
871 actual_end = min_t(u64, i_size, end + 1);
878 * we don't want to send crud past the end of i_size through
1311 * where we only increase i_size after everything is done.
3588 * extent items past i_size that needed to be deleted. In v3.12,
3589 * truncate was changed to update i_size in sync with the extent
4147 btrfs_i_size_write(dir, dir->vfs_inode.i_size - name->len * 2);
4322 btrfs_i_size_write(dir, dir->vfs_inode.i_size - fname.disk_name.len * 2);
4600 if (inode->i_size > BTRFS_EMPTY_DIR_SIZE)
4883 * rest of the block before we expand the i_size, otherwise we could
6456 btrfs_i_size_write(parent_inode, parent_inode->vfs_inode.i_size +
7419 * Need to update the i_size under the extent lock so buffered
7420 * readers will get the updated i_size when we unlock.
7511 * current i_size (the inode lock is taken in shared mode). If we fail to
8276 inode->vfs_inode.i_size & (~mask),
8343 const u64 new_size = inode->vfs_inode.i_size;
8406 ret = btrfs_truncate_block(inode, inode->vfs_inode.i_size, 0, 0);
8443 * between the old i_size and the new i_size, and there were no prealloc
8444 * extents beyond i_size to drop.
8980 new_inode->i_size > BTRFS_EMPTY_DIR_SIZE)
9013 if (new_inode && S_ISREG(old_inode->i_mode) && new_inode->i_size)
9579 u64 i_size;
9658 (actual_len > inode->i_size) &&
9659 (cur_offset > inode->i_size)) {
9661 i_size = actual_len;
9663 i_size = cur_offset;
9664 i_size_write(inode, i_size);
9869 inode->vfs_inode.i_size) - iocb->ki_pos;
10069 if (iocb->ki_pos >= inode->vfs_inode.i_size) {
10123 inode->vfs_inode.i_size) - iocb->ki_pos;
10278 * which ends at or extends i_size to have an unaligned length; we round
10279 * up the extent size and set i_size to the unaligned end.
10281 if (start + encoded->len < inode->vfs_inode.i_size &&
10401 if (start + encoded->len > inode->vfs_inode.i_size)
10667 isize = ALIGN_DOWN(inode->i_size, fs_info->sectorsize);