Skip to content

Commit e2bdb52

Browse files
committed
netfs: Fix wrong #ifdef hiding wait
netfs_writepages_begin() has the wait on the fscache folio conditional on CONFIG_NETFS_FSCACHE - which doesn't exist. Fix it to be conditional on CONFIG_FSCACHE instead. Fixes: 62c3b74 ("netfs: Provide a writepages implementation") Reported-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: Matthew Wilcox <willy@infradead.org> cc: linux-afs@lists.infradead.org cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org Link: https://lore.kernel.org/r/20240109083257.GK132648@kernel.org/
1 parent 3d1d4aa commit e2bdb52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/netfs/buffered_write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ static ssize_t netfs_writepages_begin(struct address_space *mapping,
10761076
folio_unlock(folio);
10771077
if (wbc->sync_mode != WB_SYNC_NONE) {
10781078
folio_wait_writeback(folio);
1079-
#ifdef CONFIG_NETFS_FSCACHE
1079+
#ifdef CONFIG_FSCACHE
10801080
folio_wait_fscache(folio);
10811081
#endif
10821082
goto lock_again;

0 commit comments

Comments
 (0)