nfsv4: Switch to generic xattr handling code

This patch make nfsv4 use the generic xattr handling code
to get the nfsv4 acl. This will help us to add richacl
support to nfsv4 in later patches

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Aneesh Kumar K.V
2010-12-09 11:35:25 +00:00
committed by Trond Myklebust
parent a8a5da996d
commit 64c2ce8b72
4 changed files with 44 additions and 37 deletions

View File

@@ -2501,7 +2501,8 @@ static void nfs4_clone_super(struct super_block *sb,
* so ourselves when necessary.
*/
sb->s_flags |= MS_POSIXACL;
nfs_initialise_sb(sb);
sb->s_xattr = old_sb->s_xattr;
nfs_initialise_sb(sb);
}
/*
@@ -2516,6 +2517,7 @@ static void nfs4_fill_super(struct super_block *sb)
* so ourselves when necessary.
*/
sb->s_flags |= MS_POSIXACL;
sb->s_xattr = nfs4_xattr_handlers;
nfs_initialise_sb(sb);
}