]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove extent_io_ops::writepage_start_hook
authorNikolay Borisov <nborisov@suse.com>
Thu, 1 Nov 2018 12:09:47 +0000 (14:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:27 +0000 (14:51 +0100)
commit9abe82629f474dab30e3ec81ed8bb47208d7f34f
tree543166d826ee87bf60e12ae38d27aa426cf6ebc5
parent8d9c439bd5868322efca7c4b06f7f3a0af543438
btrfs: Remove extent_io_ops::writepage_start_hook

This hook is called only from __extent_writepage_io which is already
called only from the data page writeout path. So there is no need to
make an indirect call via extent_io_ops. This patch just removes the
callback definition, exports the callback function and calls it directly
at the only call site. Also give the function a more descriptive name.
No functional changes.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
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/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c