diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-11-02 16:48:53 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:10 +0100 |
commit | 76aea5379678f901a7b229fe3e3434e594ec8e4d (patch) | |
tree | 6d51191605c3828a6b51fe2e64d34f6651389b8f /fs/btrfs/reflink.c | |
parent | a55463c9f0ffa7429d3b0bd3fc2d0b3f31a3d299 (diff) | |
download | linux-next-76aea5379678f901a7b229fe3e3434e594ec8e4d.tar.gz |
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/reflink.c')
-rw-r--r-- | fs/btrfs/reflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/reflink.c b/fs/btrfs/reflink.c index 4bbc5f52b752..952b8f33619c 100644 --- a/fs/btrfs/reflink.c +++ b/fs/btrfs/reflink.c @@ -31,7 +31,7 @@ static int clone_finish_inode_update(struct btrfs_trans_handle *trans, endoff = destoff + olen; if (endoff > inode->i_size) { i_size_write(inode, endoff); - 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); |