NFS: Don't clobber the attribute type in nfs_update_inode()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 3 Feb 2010 13:27:35 +0000 (08:27 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 3 Feb 2010 13:27:35 +0000 (08:27 -0500)
If the NFS_ATTR_FATTR_TYPE field isn't set in fattr->valid, then we should
not set the S_IFMT part of inode->i_mode.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c

diff --cc fs/nfs/inode.c
Simple merge