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>
Showing
- fs/reiserfs/super.c 0 additions, 7 deletionsfs/reiserfs/super.c
- fs/reiserfs/xattr.c 191 additions, 276 deletionsfs/reiserfs/xattr.c
- fs/reiserfs/xattr_acl.c 31 additions, 48 deletionsfs/reiserfs/xattr_acl.c
- fs/reiserfs/xattr_security.c 8 additions, 18 deletionsfs/reiserfs/xattr_security.c
- fs/reiserfs/xattr_trusted.c 11 additions, 34 deletionsfs/reiserfs/xattr_trusted.c
- fs/reiserfs/xattr_user.c 8 additions, 23 deletionsfs/reiserfs/xattr_user.c
- include/linux/reiserfs_acl.h 2 additions, 14 deletionsinclude/linux/reiserfs_acl.h
- include/linux/reiserfs_fs_sb.h 1 addition, 2 deletionsinclude/linux/reiserfs_fs_sb.h
- include/linux/reiserfs_xattr.h 6 additions, 19 deletionsinclude/linux/reiserfs_xattr.h
Loading
Please register or sign in to comment