Btrfs: cleanup error handling in extent_write_cached_pages
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 8 Mar 2016 00:56:22 +0000 (16:56 -0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 Apr 2016 08:41:47 +0000 (10:41 +0200)
commit894b36e35ae01186b77b083f3f67569a349062a6
treebbd83cc8e4060aa0d20775924f1fbb07d427072e
parenta91326679f2a0a4c239cd643674fdcda28ee86be
Btrfs: cleanup error handling in extent_write_cached_pages

Now that we bail out immediately if ->writepage() returns an error,
we don't need an extra error to retain the error code.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c