]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfs: Drop pointless check from nfs_commit_release_pages()
authorJan Kara <jack@suse.cz>
Mon, 1 Jul 2024 10:50:46 +0000 (12:50 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Jul 2024 17:47:27 +0000 (13:47 -0400)
commit37d4159dd25ade59ce0fecc75984240e5f7abc14
tree494fd3feee98f4f2bb1c93740f5814563218cafc
parent7d09d6bb66709f33e85b9fc78b25b0055f4b9d7c
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>
fs/nfs/write.c