diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2010-12-09 06:35:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-01-04 13:10:41 -0500 |
commit | 64c2ce8b72eceec4030b04bca32d098b3d1431bb (patch) | |
tree | d296c9282da04017457e44d36cf1bbda3451e2ac /fs/nfs/super.c | |
parent | a8a5da996df7d2d91b5aef2752da9adcefea4bc6 (diff) |
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>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 001f9cb2804b..0f9ea73e7789 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -2501,7 +2501,8 @@ static void nfs4_clone_super(struct super_block *sb, | |||
2501 | * so ourselves when necessary. | 2501 | * so ourselves when necessary. |
2502 | */ | 2502 | */ |
2503 | sb->s_flags |= MS_POSIXACL; | 2503 | sb->s_flags |= MS_POSIXACL; |
2504 | nfs_initialise_sb(sb); | 2504 | sb->s_xattr = old_sb->s_xattr; |
2505 | nfs_initialise_sb(sb); | ||
2505 | } | 2506 | } |
2506 | 2507 | ||
2507 | /* | 2508 | /* |
@@ -2516,6 +2517,7 @@ static void nfs4_fill_super(struct super_block *sb) | |||
2516 | * so ourselves when necessary. | 2517 | * so ourselves when necessary. |
2517 | */ | 2518 | */ |
2518 | sb->s_flags |= MS_POSIXACL; | 2519 | sb->s_flags |= MS_POSIXACL; |
2520 | sb->s_xattr = nfs4_xattr_handlers; | ||
2519 | nfs_initialise_sb(sb); | 2521 | nfs_initialise_sb(sb); |
2520 | } | 2522 | } |
2521 | 2523 | ||