]> git.baikalelectronics.ru Git - kernel.git/commitdiff
f2fs: Correct f2fs_dirty_data_folio() conversion
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 29 Mar 2022 20:22:54 +0000 (16:22 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 1 Apr 2022 18:40:44 +0000 (14:40 -0400)
I got the return value wrong.  Very little checks the return value
from set_page_dirty(), so nobody noticed during testing.

Fixes: ee56c8fbbc1e ("f2fs: Convert f2fs_set_data_page_dirty to f2fs_dirty_data_folio")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
fs/f2fs/data.c

index c92920c8661d044a9100bff04d8addd41e37b245..8e0c2e773c8d92f460622673a5731e66554f19dc 100644 (file)
@@ -3571,7 +3571,7 @@ static bool f2fs_dirty_data_folio(struct address_space *mapping,
                f2fs_update_dirty_folio(inode, folio);
                return true;
        }
-       return true;
+       return false;
 }