diff options
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index e5d7cac569aa..ad2e91b4904f 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -280,8 +280,10 @@ static int nfs_page_mark_flush(struct page *page) | |||
280 | spin_lock(req_lock); | 280 | spin_lock(req_lock); |
281 | } | 281 | } |
282 | spin_unlock(req_lock); | 282 | spin_unlock(req_lock); |
283 | if (nfs_set_page_writeback(page) == 0) | 283 | if (nfs_set_page_writeback(page) == 0) { |
284 | nfs_list_remove_request(req); | ||
284 | nfs_mark_request_dirty(req); | 285 | nfs_mark_request_dirty(req); |
286 | } | ||
285 | ret = test_bit(PG_NEED_FLUSH, &req->wb_flags); | 287 | ret = test_bit(PG_NEED_FLUSH, &req->wb_flags); |
286 | nfs_unlock_request(req); | 288 | nfs_unlock_request(req); |
287 | return ret; | 289 | return ret; |