diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-06-20 15:49:13 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:12:37 +0200 |
commit | 61da2abfcad9c7e1a9c2f74ae7af8637d9fba36e (patch) | |
tree | 318a1770e335adc4919c364d4fb5bacb6fd83665 /fs/btrfs/extent-tree.c | |
parent | 87cc7a8a2afbe806bb18ef440277c4f2e58224fa (diff) | |
download | lwn-61da2abfcad9c7e1a9c2f74ae7af8637d9fba36e.tar.gz lwn-61da2abfcad9c7e1a9c2f74ae7af8637d9fba36e.zip |
btrfs: Remove fs_info from btrfs_alloc_logged_file_extent
It can be referenced from trans since the function is always called
within a valid transaction.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 004c4e0fce36..c27215dc8b84 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -8263,10 +8263,10 @@ int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans, * space cache bits as well */ int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, - struct btrfs_fs_info *fs_info, u64 root_objectid, u64 owner, u64 offset, struct btrfs_key *ins) { + struct btrfs_fs_info *fs_info = trans->fs_info; int ret; struct btrfs_block_group_cache *block_group; struct btrfs_space_info *space_info; |