summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-02-20 13:50:34 +0200
committerDavid Sterba <dsterba@suse.com>2017-02-28 11:30:06 +0100
commit6ef06d27903d9c15505dc1a3ccf424f5018562f7 (patch)
tree220b20eaf436246c9769209b24fc1ace523bfeb5 /fs/btrfs/ioctl.c
parent877574e2548bbfd792b0b1200d4b46eef54c05f5 (diff)
downloadlinux-6ef06d27903d9c15505dc1a3ccf424f5018562f7.tar.gz
linux-6ef06d27903d9c15505dc1a3ccf424f5018562f7.tar.bz2
linux-6ef06d27903d9c15505dc1a3ccf424f5018562f7.zip
btrfs: Make btrfs_i_size_write take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 628d1b180cee..86f993c958ba 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -594,7 +594,7 @@ static noinline int create_subvol(struct inode *dir,
goto fail;
}
- btrfs_i_size_write(dir, dir->i_size + namelen * 2);
+ btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2);
ret = btrfs_update_inode(trans, root, dir);
BUG_ON(ret);
@@ -3298,7 +3298,7 @@ static int clone_finish_inode_update(struct btrfs_trans_handle *trans,
if (endoff > destoff + olen)
endoff = destoff + olen;
if (endoff > inode->i_size)
- btrfs_i_size_write(inode, endoff);
+ btrfs_i_size_write(BTRFS_I(inode), endoff);
ret = btrfs_update_inode(trans, root, inode);
if (ret) {