nfsv4: Switch to generic xattr handling code
[linux-2.6-block.git] / fs / nfs / super.c
index 001f9cb2804ba36177ed473512297a7aa149b687..0f9ea73e77892bf3e3e84cc50f9f6625671d5a6f 100644 (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);
 }