diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-02-03 19:45:14 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-04-07 18:55:54 +0200 |
| commit | 8f3fc2d8973af8dc5559ecbbfb5ed3b19b2e8fa5 (patch) | |
| tree | 0c1c739b91457924a5845ccc3d3859a561419521 /fs/btrfs/transaction.c | |
| parent | abd5e352b160f251ba1a481c03cdd7653557d0f2 (diff) | |
| download | linux-next-8f3fc2d8973af8dc5559ecbbfb5ed3b19b2e8fa5.tar.gz linux-next-8f3fc2d8973af8dc5559ecbbfb5ed3b19b2e8fa5.zip | |
btrfs: remove max_mirrors argument from write_all_supers()
There's no need to pass max_mirrors to write_all_supers() since from the
given transaction handle we can infer if we are in a transaction commit
or fsync context, so we can determine how many mirrors we need to use.
So remove the max_mirror argument from write_all_supers() and stop
adjusting it in the callees write_dev_supers() and wait_dev_supers(),
simplifying them besides the parameter list for write_all_supers().
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
| -rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 8f24a025625e..4c1fcf9a71a2 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -2573,7 +2573,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans) goto scrub_continue; } - ret = write_all_supers(trans, 0); + ret = write_all_supers(trans); /* * the super is written, we can safely allow the tree-loggers * to go about their business |
