]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
afs: Do not test the return value of folio_start_writeback()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 18 Jul 2023 17:26:46 +0000 (13:26 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 4 Oct 2023 01:18:59 +0000 (21:18 -0400)
In preparation for removing the return value entirely, stop testing it
in afs.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/afs/write.c

index e1c45341719bc59730902316fdeeb4d7970c662d..6f3232c55200562023499f1b1f057d0747ea38f7 100644 (file)
@@ -559,8 +559,7 @@ static void afs_extend_writeback(struct address_space *mapping,
 
                        if (!folio_clear_dirty_for_io(folio))
                                BUG();
-                       if (folio_start_writeback(folio))
-                               BUG();
+                       folio_start_writeback(folio);
                        afs_folio_start_fscache(caching, folio);
 
                        *_count -= folio_nr_pages(folio);
@@ -595,8 +594,7 @@ static ssize_t afs_write_back_from_locked_folio(struct address_space *mapping,
 
        _enter(",%lx,%llx-%llx", folio_index(folio), start, end);
 
-       if (folio_start_writeback(folio))
-               BUG();
+       folio_start_writeback(folio);
        afs_folio_start_fscache(caching, folio);
 
        count -= folio_nr_pages(folio);