Skip to content

Commit 0e8d931

Browse files
committed
btrfs: remove unused parameters from __btrfs_write_out_cache
Both unused after the call to update_cache_item has been moved to __btrfs_wait_cache_io. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 7bf1a15 commit 0e8d931

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

fs/btrfs/free-space-cache.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,6 @@ int btrfs_wait_cache_io(struct btrfs_trans_handle *trans,
12201220
* @ctl - the free space cache we are going to write out
12211221
* @block_group - the block_group for this cache if it belongs to a block_group
12221222
* @trans - the trans handle
1223-
* @path - the path to use
1224-
* @offset - the offset for the key we'll insert
12251223
*
12261224
* This function writes out a free space cache struct to disk for quick recovery
12271225
* on mount. This will return 0 if it was successful in writing the cache out,
@@ -1231,8 +1229,7 @@ static int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode,
12311229
struct btrfs_free_space_ctl *ctl,
12321230
struct btrfs_block_group_cache *block_group,
12331231
struct btrfs_io_ctl *io_ctl,
1234-
struct btrfs_trans_handle *trans,
1235-
struct btrfs_path *path, u64 offset)
1232+
struct btrfs_trans_handle *trans)
12361233
{
12371234
struct btrfs_fs_info *fs_info = root->fs_info;
12381235
struct extent_state *cached_state = NULL;
@@ -1390,8 +1387,7 @@ int btrfs_write_out_cache(struct btrfs_fs_info *fs_info,
13901387
return 0;
13911388

13921389
ret = __btrfs_write_out_cache(root, inode, ctl, block_group,
1393-
&block_group->io_ctl, trans,
1394-
path, block_group->key.objectid);
1390+
&block_group->io_ctl, trans);
13951391
if (ret) {
13961392
#ifdef DEBUG
13971393
btrfs_err(fs_info,
@@ -3538,8 +3534,7 @@ int btrfs_write_out_ino_cache(struct btrfs_root *root,
35383534
return 0;
35393535

35403536
memset(&io_ctl, 0, sizeof(io_ctl));
3541-
ret = __btrfs_write_out_cache(root, inode, ctl, NULL, &io_ctl,
3542-
trans, path, 0);
3537+
ret = __btrfs_write_out_cache(root, inode, ctl, NULL, &io_ctl, trans);
35433538
if (!ret) {
35443539
/*
35453540
* At this point writepages() didn't error out, so our metadata

0 commit comments

Comments
 (0)