]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove extent_page_data argument from writepage_delalloc
authorNikolay Borisov <nborisov@suse.com>
Thu, 8 Nov 2018 08:18:07 +0000 (10:18 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:32 +0000 (14:51 +0100)
commitb7484a0c5d94b195ed8e3a1de770af60aebb510c
treede13d20719104abd5ccfd2e40da26f9ce2a8dffc
parenta4611b369a26e9340d5a1a6e1adc7471914838cf
btrfs: Remove extent_page_data argument from writepage_delalloc

The only remaining use of the 'epd' argument in writepage_delalloc is
to reference the extent_io_tree which was set in extent_writepages. Since
it is guaranteed that page->mapping of any page passed to
writepage_delalloc (and __extent_writepage as the sole caller) to be
equal to that passed in extent_writepages we can directly get the
io_tree via the already passed inode (which is also taken from
page->mapping->host). No functional changes.

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