diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-18 11:35:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:21:00 +0200 |
commit | fc26de15b5d840286dbd8dac7048897d0699f611 (patch) | |
tree | 31b3abdf91425b3627e0d169748311c86349f880 /fs/nfs/direct.c | |
parent | 712fc1c0d9758aa623b17c650912c77629691a30 (diff) | |
download | linux-stable-fc26de15b5d840286dbd8dac7048897d0699f611.tar.gz linux-stable-fc26de15b5d840286dbd8dac7048897d0699f611.tar.bz2 linux-stable-fc26de15b5d840286dbd8dac7048897d0699f611.zip |
NFS: Clean up list moves of struct nfs_page
[ Upstream commit 078b5fd92c4913dd367361db6c28568386077c89 ]
In several places we're just moving the struct nfs_page from one list to
another by first removing from the existing list, then adding to the new
one.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nfs/direct.c')
-rw-r--r-- | fs/nfs/direct.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index 89c03a507dd9..0c5e56702b19 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -664,8 +664,7 @@ static void nfs_direct_write_reschedule(struct nfs_direct_req *dreq) list_for_each_entry_safe(req, tmp, &reqs, wb_list) { if (!nfs_pageio_add_request(&desc, req)) { - nfs_list_remove_request(req); - nfs_list_add_request(req, &failed); + nfs_list_move_request(req, &failed); spin_lock(&cinfo.inode->i_lock); dreq->flags = 0; if (desc.pg_error < 0) |