cifs: revalidate mapping prior to satisfying read_iter request with cache=loose
authorJeff Layton <jlayton@poochiereds.net>
Fri, 23 May 2014 10:50:21 +0000 (06:50 -0400)
committerSteve French <smfrench@gmail.com>
Thu, 19 Jun 2014 18:34:04 +0000 (13:34 -0500)
commit08bc03539d38508eff3fd470a82ea422ce279f6e
tree8ccfdec6410f15e33ed4e42b748ed773aaa55632
parenta1d0b84c308d7fdfb67eb76498116a6c2fdda507
cifs: revalidate mapping prior to satisfying read_iter request with cache=loose

Before satisfying a read with cache=loose, we should always check
that the pagecache is valid before allowing a read to be satisfied
out of it.

Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsfs.c