]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: set written super flag once in write_all_supers()
authorFilipe Manana <fdmanana@suse.com>
Tue, 3 Feb 2026 20:02:18 +0000 (20:02 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:54 +0000 (18:55 +0200)
commit1f3f98e42d82db7aa375371045bfdb632ecba5c2
tree17b627e998b98b3c27dc6040de46ddd369f8eaa0
parent8f3fc2d8973af8dc5559ecbbfb5ed3b19b2e8fa5
btrfs: set written super flag once in write_all_supers()

In case we have multiple devices, there is no point in setting the written
flag in the super block on every iteration over the device list. Just do
it once before the loop.

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>
fs/btrfs/disk-io.c