ocfs2: Introduce ocfs2_xa_loc
authorJoel Becker <joel.becker@oracle.com>
Fri, 14 Aug 2009 23:07:44 +0000 (16:07 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 26 Feb 2010 23:41:08 +0000 (15:41 -0800)
commit11179f2c92cb025b1ff0b794f9714b3fb395855f
treec36647684270a69e968e6bf60145598a64b45f27
parent8545e03d82b6739461bbd60db7aba144f7dbe80f
ocfs2: Introduce ocfs2_xa_loc

The ocfs2 extended attribute (xattr) code is very flexible.  It can
store xattrs in the inode itself, in an external block, or in a tree of
data structures.  This allows the number of xattrs to be bounded by the
filesystem size.

However, the code that manages each possible storage location is
different.  Maintaining the ocfs2 xattr code requires changing each hunk
separately.

This patch is the start of a series introducing the ocfs2_xa_loc
structure.  This structure wraps the on-disk details of an xattr
entry.  The goal is that the generic xattr routines can use
ocfs2_xa_loc without knowing the underlying storage location.

This first pass merely implements the basic structure, initializing it,
and wiping the name+value pair of the entry.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/xattr.c