GFS2: Clean up of extended attribute support
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 26 Aug 2009 17:41:32 +0000 (18:41 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 26 Aug 2009 17:41:32 +0000 (18:41 +0100)
commit40b78a322365aa1d87770200f7fc7de3b361c11a
tree9e33daa30113741d9ef716f3723ac1d9690e33cf
parentb6ed2e03df1e2c6ee41cf0e2e2699f2410671916
GFS2: Clean up of extended attribute support

This has been on my list for some time. We need to change the way
in which we handle extended attributes to allow faster file creation
times (by reducing the number of transactions required) and the
extended attribute code is the main obstacle to this.

In addition to that, the VFS provides a way to demultiplex the xattr
calls which we ought to be using, rather than rolling our own. This
patch changes the GFS2 code to use that VFS feature and as a result
the code shrinks by a couple of hundred lines or so, and becomes
easier to read.

I'm planning on doing further clean up work in this area, but this
patch is a good start. The cleaned up code also uses the more usual
"xattr" shorthand, I plan to eliminate the use of "eattr" eventually
and in the mean time it serves as a flag as to which bits of the code
have been updated.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/Makefile
fs/gfs2/acl.c
fs/gfs2/eaops.c [deleted file]
fs/gfs2/eaops.h [deleted file]
fs/gfs2/eattr.c
fs/gfs2/eattr.h
fs/gfs2/file.c
fs/gfs2/inode.c
fs/gfs2/ops_fstype.c
fs/gfs2/ops_inode.c
fs/gfs2/super.h