]> git.baikalelectronics.ru Git - kernel.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)
commit4590e03c1d8d8adbf44e267448b35d7c4aac512d
tree68f9022b303ca5183bd64eddbff41f0624e84188
parent3430555a04405abe4fb51db300765d912a081fea
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