ocfs2: Modify ocfs2_num_free_extents for future xattr usage.
authorTao Ma <tao.ma@oracle.com>
Mon, 18 Aug 2008 09:38:42 +0000 (17:38 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 20:57:58 +0000 (13:57 -0700)
commit231b87d10920e024efaf0f9e86e1bab7bced1620
tree00283dfb9e4a7054576be8a073635dc51bdc4e22
parent9a8ff578fb430a8816dfbc73c77e5e09c6d9c343
ocfs2: Modify ocfs2_num_free_extents for future xattr usage.

ocfs2_num_free_extents() is used to find the number of free extent records
in an inode btree. Hence, it takes an "ocfs2_dinode" parameter. We want to
use this for extended attribute trees in the future, so genericize the
interface the take a buffer head. A future patch will allow that buffer_head
to contain any structure rooting an ocfs2 btree.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h
fs/ocfs2/aops.c
fs/ocfs2/dir.c
fs/ocfs2/file.c
fs/ocfs2/file.h