diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-01-17 17:02:23 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-03-23 19:01:24 +0300 |
commit | d923afe96d7eabbe868a478bae0997dfecb8a5a3 (patch) | |
tree | 1bc89c54522d3518f25dfe7f4ebaa3d09b035392 /fs/btrfs/file.c | |
parent | 9ddc959e802bf7555a0be543205ddcba2bae98bf (diff) | |
download | linux-d923afe96d7eabbe868a478bae0997dfecb8a5a3.tar.xz |
btrfs: replace all uses of btrfs_ordered_update_i_size
Now that we have a safe way to update the i_size, replace all uses of
btrfs_ordered_update_i_size with btrfs_inode_safe_disk_i_size_write.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 200eb14b6721..06a2f0f2e602 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -2967,7 +2967,7 @@ static int btrfs_fallocate_update_isize(struct inode *inode, inode->i_ctime = current_time(inode); i_size_write(inode, end); - btrfs_ordered_update_i_size(inode, end, NULL); + btrfs_inode_safe_disk_i_size_write(inode, 0); ret = btrfs_update_inode(trans, root, inode); ret2 = btrfs_end_transaction(trans); |