This reverts commit vz7 351104c35fa9e976d68c80169bfd62bba26385a6
(and vz8 57da42f338e8152e8bca281c3bbf12f8107ddce6)

The patch made sense previously because fuse_writepages() called
redirty_page_for_writepage(), but nowadays it does not, so
let's remove the hack.

Found while working in the scope of
https://jira.sw.ru/browse/PSBM-97743

Signed-off-by: Konstantin Khorenko <[email protected]>
(cherry picked from commit 4cfdc38c9b5fc193dcd9bdf5076eaf257f905010)
Fixes (reverts) vz8: 57da42f338e8152e8bca281c3bbf12f8107ddce6
Signed-off-by: Vasily Averin <[email protected]>
---
 fs/fs-writeback.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 4bc064e21675..226a030d4a10 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -1674,9 +1674,6 @@ static long writeback_sb_inodes(struct super_block *sb,
                        if (work->nr_pages <= 0)
                                break;
                }
-
-               WARN_ON(wbc.pages_skipped > write_chunk - wbc.nr_to_write);
-               wrote -= wbc.pages_skipped;
        }
        return wrote;
 }
-- 
2.25.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to