NFSv4 set open access operation call flag in nfs4_init_opendata_res
authorAndy Adamson <andros@netapp.com>
Wed, 3 Oct 2012 06:39:34 +0000 (02:39 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 4 Oct 2012 00:10:28 +0000 (17:10 -0700)
commit5f65753033d8c5a53e65810bff3832e8282c68d1
tree97df48c9fe25a460c0953101eccf9f2e7ed22693
parent8544a9dc18a1aa787b85425ecc9233b0a9adaff4
NFSv4 set open access operation call flag in nfs4_init_opendata_res

nfs4_open_recover_helper zeros the nfs4_opendata result structures, removing
the result access_request information which leads to an XDR decode error.

Move the setting of the result access_request field to nfs4_init_opendata_res
which sets all the other required nfs4_opendata result fields and is shared
between the open and recover open paths.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c