]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Take ocfs2_xattr_bucket structures off of the stack.
authorJoel Becker <joel.becker@oracle.com>
Sat, 25 Oct 2008 02:13:20 +0000 (19:13 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:34:17 +0000 (08:34 -0800)
commit317dc3c0ef525c460bc61050305322c5c730a222
treee5be4c76939ed4d87c256ff17f30e58bbebfb413
parente0a243444dff1976692496f80901339376956dc7
ocfs2: Take ocfs2_xattr_bucket structures off of the stack.

The ocfs2_xattr_bucket structure is a nice abstraction, but it is a bit
large to have on the stack.  Just like ocfs2_path, let's allocate it
with a ocfs2_xattr_bucket_new() function.

We can now store the inode on the bucket, cleaning up all the other
bucket functions.  While we're here, we catch another place or two that
wasn't using ocfs2_read_xattr_bucket().

Updates:
- No longer allocating xis.bucket, as it will never be used.

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