]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
reiserfs: Clean up xattrs when REISERFS_FS_XATTR is unset
authorJeff Mahoney <jeffm@suse.com>
Mon, 30 Mar 2009 18:02:33 +0000 (14:02 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Mar 2009 19:16:37 +0000 (12:16 -0700)
commita72bdb1cd244725ff47b3a29662e2cb820d8c60f
tree68f9022b303ca5183bd64eddbff41f0624e84188
parent6dfede696391133eadd7ce90b61c9573ee6e5a90
reiserfs: Clean up xattrs when REISERFS_FS_XATTR is unset

The current reiserfs xattr implementation will not clean up old xattr
files if files are deleted when REISERFS_FS_XATTR is unset.  This
results in inaccessible lost files, wasting space.

This patch compiles in basic xattr knowledge, such as how to delete them
and change ownership for quota tracking.  If the file system has never
used xattrs, then the operation is quite fast: it returns immediately
when it sees there is no .reiserfs_priv directory.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/Makefile
fs/reiserfs/xattr.c
include/linux/reiserfs_fs_sb.h
include/linux/reiserfs_xattr.h