nfs: only remove page from mapping if launder_page fails
authorPeng Tao <tao.peng@primarydata.com>
Sat, 5 Dec 2015 08:20:43 +0000 (16:20 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:38 +0000 (14:32 -0500)
commitd6c843b96e1cb5199147e3281a724e3c0b69a9ab
tree73d556f77eb68743a0752e150c493bd4062cad59
parent0bcbf039f6b2bcefe4f5dada76079080edf9ecd0
nfs: only remove page from mapping if launder_page fails

Instead of dropping pages when write fails, only do it when
we get fatal failure in launder_page write back.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/file.c
fs/nfs/write.c
include/linux/nfs_fs.h