]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
btrfs: Remove extent_io_ops::fill_delalloc
authorNikolay Borisov <nborisov@suse.com>
Thu, 1 Nov 2018 12:09:46 +0000 (14:09 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commitbf5fc4bc8ef109ff5d86f7f080ea87407d945059
tree0ff82221ca7e0339e56bbc2ec98cae54a981d9d6
parent225cce415bd7278a6ed8be1e46539ed2daafbc44
btrfs: Remove extent_io_ops::fill_delalloc

BugLink: https://bugs.launchpad.net/bugs/1844558
[ Upstream commit 5eaad97af8aeff38debe7d3c69ec3a0d71f8350f ]

This callback is called only from writepage_delalloc which in turn is
guaranteed to be called from the data page writeout path. In the end
there is no reason to have the call to this function to be indrected via
the extent_io_ops structure. This patch removes the callback definition,
exports the function and calls it directly. 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>
[ rename to btrfs_run_delalloc_range ]
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c