nfsd: stop READDIRPLUS returning inconsistent attributes
authorNeilBrown <neilb@suse.de>
Sat, 2 May 2015 23:16:53 +0000 (09:16 +1000)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 7 May 2015 15:47:00 +0000 (11:47 -0400)
commit43b0e7ea590b51052384ecedf4ad7c8d7898e8e7
tree506113d48acf247d47ec07ee33b31c5332a00087
parent72faedae8bc3504ee4252cebf14737a23677cb8f
nfsd: stop READDIRPLUS returning inconsistent attributes

The NFSv3 READDIRPLUS gets some of the returned attributes from the
readdir, and some from an inode returned from a new lookup.  The two
objects could be different thanks to intervening renames.

The attributes in READDIRPLUS are optional, so let's just skip them if
we notice this case.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs3xdr.c