aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/super.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2009-03-30 14:02:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 15:16:38 -0400
commit48b32a3553a54740d236b79a90f20147a25875e3 (patch)
treefaf6807facb5825608469a9e33c9127f90b974df /fs/reiserfs/super.c
parent8ecbe550a142fe604874afa477ea68986f89b86c (diff)
reiserfs: use generic xattr handlers
Christoph Hellwig had asked me quite some time ago to port the reiserfs xattrs to the generic xattr interface. This patch replaces the reiserfs-specific xattr handling code with the generic struct xattr_handler. However, since reiserfs doesn't split the prefix and name when accessing xattrs, it can't leverage generic_{set,get,list,remove}xattr without needlessly reconstructing the name on the back end. Update 7/26/07: Added missing dput() to deletion path. Update 8/30/07: Added missing mark_inode_dirty when i_mode is used to represent an ACL and no previous ACL existed. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r--fs/reiserfs/super.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 6d10f81b4fc1..4a1e16362ebd 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -2263,9 +2263,6 @@ static int __init init_reiserfs_fs(void)
2263 return ret; 2263 return ret;
2264 } 2264 }
2265 2265
2266 if ((ret = reiserfs_xattr_register_handlers()))
2267 goto failed_reiserfs_xattr_register_handlers;
2268
2269 reiserfs_proc_info_global_init(); 2266 reiserfs_proc_info_global_init();
2270 reiserfs_proc_register_global("version", 2267 reiserfs_proc_register_global("version",
2271 reiserfs_global_version_in_proc); 2268 reiserfs_global_version_in_proc);
@@ -2276,9 +2273,6 @@ static int __init init_reiserfs_fs(void)
2276 return 0; 2273 return 0;
2277 } 2274 }
2278 2275
2279 reiserfs_xattr_unregister_handlers();
2280
2281 failed_reiserfs_xattr_register_handlers:
2282 reiserfs_proc_unregister_global("version"); 2276 reiserfs_proc_unregister_global("version");
2283 reiserfs_proc_info_global_done(); 2277 reiserfs_proc_info_global_done();
2284 destroy_inodecache(); 2278 destroy_inodecache();
@@ -2288,7 +2282,6 @@ static int __init init_reiserfs_fs(void)
2288 2282
2289static void __exit exit_reiserfs_fs(void) 2283static void __exit exit_reiserfs_fs(void)
2290{ 2284{
2291 reiserfs_xattr_unregister_handlers();
2292 reiserfs_proc_unregister_global("version"); 2285 reiserfs_proc_unregister_global("version");
2293 reiserfs_proc_info_global_done(); 2286 reiserfs_proc_info_global_done();
2294 unregister_filesystem(&reiserfs_fs_type); 2287 unregister_filesystem(&reiserfs_fs_type);