]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove trivial helper update_nr_written
authorDavid Sterba <dsterba@suse.com>
Tue, 27 Jul 2021 10:45:11 +0000 (12:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:31 +0000 (17:17 +0200)
commit2194c6cfc9500c998901bd49598655fee6cf12a7
tree07106dc539385101b5fa90124e670b603f008207
parentbf74b3e0f2bc3994aa5a883d926ab2be500d4ddd
btrfs: remove trivial helper update_nr_written

The helper used to do more with the wbc state but now it's just one
subtraction, no need to have a special helper.

It became trivial in c8c40b076ba0 ("Btrfs: make mapping->writeback_index
point to the last written page").

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c