summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-11-02 16:48:53 +0200
committerDavid Sterba <dsterba@suse.com>2020-12-08 15:54:10 +0100
commit76aea5379678f901a7b229fe3e3434e594ec8e4d (patch)
tree6d51191605c3828a6b51fe2e64d34f6651389b8f /fs/btrfs/file.c
parenta55463c9f0ffa7429d3b0bd3fc2d0b3f31a3d299 (diff)
downloadlinux-76aea5379678f901a7b229fe3e3434e594ec8e4d.tar.bz2
btrfs: make btrfs_inode_safe_disk_i_size_write take btrfs_inode
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 8a9056b6e2ad..096be647c234 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -3073,7 +3073,7 @@ static int btrfs_fallocate_update_isize(struct inode *inode,
inode->i_ctime = current_time(inode);
i_size_write(inode, end);
- btrfs_inode_safe_disk_i_size_write(inode, 0);
+ btrfs_inode_safe_disk_i_size_write(BTRFS_I(inode), 0);
ret = btrfs_update_inode(trans, root, inode);
ret2 = btrfs_end_transaction(trans);