]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba9e271269ab8a14fc1b11984185dab8e66c42d6
treeb35229c40aa9e3b3ac4806f64b2fc941974cf270
parentc5beb4f5ef164c9b394176c5e8e99be1ed8c5c4c
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