NFSv4: Fix a thinko in nfs4_try_open_cached
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 29 May 2013 19:36:40 +0000 (15:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:49:30 +0000 (12:49 -0700)
commit19091a7f278a5b20b2a15e18e34cb9579de0aa69
treefefff4f71ca3d019b2134e61037f31367c1e8c56
parent7c12b0057706c0694c96c06a2988fed65c8c7515
NFSv4: Fix a thinko in nfs4_try_open_cached

commit f448badd34700ae728a32ba024249626d49c10e1 upstream.

We need to pass the full open mode flags to nfs_may_open() when doing
a delegated open.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c