ocfs2: Abstract ocfs2 xattr tree extend rec iteration process.
authorTao Ma <tao.ma@oracle.com>
Tue, 18 Aug 2009 03:43:42 +0000 (11:43 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 23 Sep 2009 03:09:43 +0000 (20:09 -0700)
commit47bca4950bc40fb54e9d41cbbc8b06cd653d2ae2
tree17d36e5b9f330cda55b6ee8ff9a0293bd080040e
parent5aea1f0ef4024ba28213c10181e1b16ec678c82d
ocfs2: Abstract ocfs2 xattr tree extend rec iteration process.

Currently we have ocfs2_iterate_xattr_buckets which can receive
a para and a callback to iterate a series of bucket. It is good.
But actually the 2 callers ocfs2_xattr_tree_list_index_block and
ocfs2_delete_xattr_index_block are almost the same. The only
difference is that the latter need to handle the extent record
also. So add a new function named ocfs2_iterate_xattr_index_block.
It can be given func callback which are used for exten record.
So now we only have one iteration function for the xattr index
block. Ane what's more, it is useful for our future reflink
operations.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/xattr.c