ocfs2: Set inline xattr entries with ocfs2_xa_set()
authorJoel Becker <joel.becker@oracle.com>
Wed, 19 Aug 2009 18:09:17 +0000 (11:09 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 26 Feb 2010 23:41:13 +0000 (15:41 -0800)
commit139ffacebf5fe2cd9e2ae40d325a9661a679ad4f
tree4643a671b7712cfe7210cc970252641be17518ce
parentd3981544d7a4ed276966cdd58fe2f5d6e8a585d9
ocfs2: Set inline xattr entries with ocfs2_xa_set()

ocfs2_xattr_ibody_set() is the only remaining user of
ocfs2_xattr_set_entry().  ocfs2_xattr_set_entry() actually does two
things: it calls ocfs2_xa_set(), and it initializes the inline xattrs.
Initializing the inline space really belongs in its own call.

We lift the initialization to ocfs2_xattr_ibody_init(), called from
ocfs2_xattr_ibody_set() only when necessary.  Now
ocfs2_xattr_ibody_set() can call ocfs2_xa_set() directly.
ocfs2_xattr_set_entry() goes away.

Another nice fact is that ocfs2_init_dinode_xa_loc() can trust
i_xattr_inline_size.

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