diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-01-21 11:51:43 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-31 14:02:11 +0100 |
commit | 5ab580556994eea3e3a95a07b79384a7a96320a0 (patch) | |
tree | 33ac75b9dc627698d4849663a8571d095fb04b8d | |
parent | 25f3c5021985e885292980d04a1423fd83c967bb (diff) | |
download | linux-5ab580556994eea3e3a95a07b79384a7a96320a0.tar.gz linux-5ab580556994eea3e3a95a07b79384a7a96320a0.tar.bz2 linux-5ab580556994eea3e3a95a07b79384a7a96320a0.zip |
btrfs: drop the -EBUSY case in __extent_writepage_io
Now that we only return 0 or -EAGAIN from btrfs_writepage_cow_fixup, we
do not need this -EBUSY case.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/extent_io.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index c467c664f600..c0f202741e09 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -3442,11 +3442,7 @@ static noinline_for_stack int __extent_writepage_io(struct inode *inode, ret = btrfs_writepage_cow_fixup(page, start, page_end); if (ret) { /* Fixup worker will requeue */ - if (ret == -EBUSY) - wbc->pages_skipped++; - else - redirty_page_for_writepage(wbc, page); - + redirty_page_for_writepage(wbc, page); update_nr_written(wbc, nr_written); unlock_page(page); return 1; |