Skip to content

Commit

Permalink
afs: do not test the return value of folio_start_writeback()
Browse files Browse the repository at this point in the history
In preparation for removing the return value entirely, stop testing it
in afs.

Link: https://lkml.kernel.org/r/20231108204605.745109-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Steve French <sfrench@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Matthew Wilcox (Oracle) authored and Andrew Morton committed Dec 11, 2023
1 parent c36f9d3 commit 8525d59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/afs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8525d59

Please sign in to comment.