Skip to content

Commit 8525d59

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
afs: do not test the return value of folio_start_writeback()
In preparation for removing the return value entirely, stop testing it in afs. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: David Howells <[email protected]> Cc: Steve French <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c36f9d3 commit 8525d59

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/afs/write.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ static void afs_extend_writeback(struct address_space *mapping,
559559

560560
if (!folio_clear_dirty_for_io(folio))
561561
BUG();
562-
if (folio_start_writeback(folio))
563-
BUG();
562+
folio_start_writeback(folio);
564563
afs_folio_start_fscache(caching, folio);
565564

566565
*_count -= folio_nr_pages(folio);
@@ -595,8 +594,7 @@ static ssize_t afs_write_back_from_locked_folio(struct address_space *mapping,
595594

596595
_enter(",%lx,%llx-%llx", folio_index(folio), start, end);
597596

598-
if (folio_start_writeback(folio))
599-
BUG();
597+
folio_start_writeback(folio);
600598
afs_folio_start_fscache(caching, folio);
601599

602600
count -= folio_nr_pages(folio);

0 commit comments

Comments
 (0)