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)
commit9b4b351346b41d923d69adec865814fdaac4dba9
treeb35229c40aa9e3b3ac4806f64b2fc941974cf270
parent387c149b54b4321cbc790dadbd4f8eedb5a90468
NFS: Don't clobber the attribute type in nfs_update_inode()

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