staging/lustre/llite: don't add to page cache upon failure
authorLai Siyao <lai.siyao@intel.com>
Mon, 2 Feb 2015 02:52:17 +0000 (21:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:32:34 +0000 (17:32 +0800)
commitc67587a74847a27965ca1c6a4362c3b39e9943e1
treee808c2718ab3c064ec378d0f194b0e465eefd1a0
parent437dfb201a55ff73954ae7455ef3d17be4b1c0f6
staging/lustre/llite: don't add to page cache upon failure

Reading directory pages may fail on MDS, in this case client should
not cache a non-up-to-date directory page, because it will cause
a later read on the same page fail.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5461
Reviewed-on: http://review.whamcloud.com/11450
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c