]> 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)
commit1ecda800e36a7b127a08e0240cba76b452e132e8
tree07106dc539385101b5fa90124e670b603f008207
parent371856f8aad818fc263c080c22b3c9bba8387361
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 6a4536db2804 ("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