diff options
author | David Sterba <dsterba@suse.com> | 2017-02-17 17:18:32 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 16:29:24 +0300 |
commit | c3988d630a4dfec5c09f2b6496734f320949ea9c (patch) | |
tree | a135de57adae888a7ea51845c85373ed41733cce /fs/btrfs/extent_io.c | |
parent | b9d04c607c21fafe0a346792d0d358e7ab9a768e (diff) | |
download | linux-c3988d630a4dfec5c09f2b6496734f320949ea9c.tar.xz |
btrfs: let writepage_end_io_hook return void
There's no error path in any of the instances, always return 0.
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index c3abf846a449..94beb758e8aa 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2437,12 +2437,9 @@ void end_extent_writepage(struct page *page, int err, u64 start, u64 end) tree = &BTRFS_I(page->mapping->host)->io_tree; - if (tree->ops && tree->ops->writepage_end_io_hook) { - ret = tree->ops->writepage_end_io_hook(page, start, - end, NULL, uptodate); - if (ret) - uptodate = 0; - } + if (tree->ops && tree->ops->writepage_end_io_hook) + tree->ops->writepage_end_io_hook(page, start, end, NULL, + uptodate); if (!uptodate) { ClearPageUptodate(page); |