projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c36f9d3
)
afs: do not test the return value of folio_start_writeback()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 8 Nov 2023 20:46:03 +0000
(20:46 +0000)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 11 Dec 2023 00:51:37 +0000
(16:51 -0800)
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>
fs/afs/write.c
patch
|
blob
|
history
diff --git
a/fs/afs/write.c
b/fs/afs/write.c
index
4a16878
..
57d05d6
100644
(file)
--- a/
fs/afs/write.c
+++ b/
fs/afs/write.c
@@
-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);