fs/9p: v9fs_stat2inode should update suid/sgid bits.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 5 Jan 2012 08:09:49 +0000 (13:09 +0530)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 5 Jan 2012 16:51:44 +0000 (10:51 -0600)
commitdf345c674b6366952a21a67604c8f6d489bb7ea7
tree8e78d60bbdd04c3ab465be28698edb899fa48097
parent5d3851530d6d68564e4e0ce04d0547d4d106fc72
fs/9p: v9fs_stat2inode should update suid/sgid bits.

Create a new helper that update the permission bits and use
that, instead of opencoding the logic.

Reported and bisected by:  M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c