Skip to content

Commit 0b81371

Browse files
neilbrownTrond Myklebust
authored andcommitted
NFS: remove sync_mode test from nfs_writepage_locked()
nfs_writepage_locked() is only called from nfs_wb_folio() (since Commit 12fc0a9 ("nfs: Remove writepage")) so ->sync_mode is always WB_SYNC_ALL. This means the test for WB_SYNC_NONE is dead code and can be removed. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent a35518c commit 0b81371

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/nfs/write.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,6 @@ static int nfs_writepage_locked(struct folio *folio,
667667
struct inode *inode = folio_file_mapping(folio)->host;
668668
int err;
669669

670-
if (wbc->sync_mode == WB_SYNC_NONE &&
671-
NFS_SERVER(inode)->write_congested)
672-
return AOP_WRITEPAGE_ACTIVATE;
673-
674670
nfs_inc_stats(inode, NFSIOS_VFSWRITEPAGE);
675671
nfs_pageio_init_write(&pgio, inode, 0, false,
676672
&nfs_async_write_completion_ops);

0 commit comments

Comments
 (0)