summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2024-07-01 12:50:46 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2024-07-08 13:47:27 -0400
commit37d4159dd25ade59ce0fecc75984240e5f7abc14 (patch)
tree494fd3feee98f4f2bb1c93740f5814563218cafc /fs/nfs
parent7d09d6bb66709f33e85b9fc78b25b0055f4b9d7c (diff)
nfs: Drop pointless check from nfs_commit_release_pages()
nfss->writeback is updated only when we are ending page writeback and at that moment we also clear nfss->write_congested. So there's no point in rechecking congestion state in nfs_commit_release_pages(). Drop the pointless check. Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index f5414c96381a..4321cdc581bb 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1846,7 +1846,6 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data)
struct nfs_page *req;
int status = data->task.tk_status;
struct nfs_commit_info cinfo;
- struct nfs_server *nfss;
struct folio *folio;
while (!list_empty(&data->pages)) {
@@ -1889,9 +1888,6 @@ static void nfs_commit_release_pages(struct nfs_commit_data *data)
/* Latency breaker */
cond_resched();
}
- nfss = NFS_SERVER(data->inode);
- if (atomic_long_read(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH)
- nfss->write_congested = 0;
nfs_init_cinfo(&cinfo, data->inode, data->dreq);
nfs_commit_end(cinfo.mds);