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)
commit572f3dad5221c98d8c8507f2b6373780751b90d9
tree07106dc539385101b5fa90124e670b603f008207
parenta6f5e39ee77aa54a367627caae8e47a678582a17
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 a91326679f2a ("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