Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=f52c560d48b... Commit: f52c560d48b4a6b85851f8e02c619c8e4d0fa589 Parent: 9a61ff6028330e478ca67fbed5f9ef97c31662cc Author: Bob Peterson rpeterso@redhat.com AuthorDate: Thu Feb 21 09:29:24 2013 -0700 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Mon May 20 11:12:45 2013 -0500
libgfs2: externalize dir_split_leaf
This patch makes libgfs2 externalize function dir_split_leaf so that fsck.gfs2 can split leafs in a future patch. --- gfs2/libgfs2/fs_ops.c | 3 +-- gfs2/libgfs2/libgfs2.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs2/libgfs2/fs_ops.c b/gfs2/libgfs2/fs_ops.c index 51e6abf..8b67d2a 100644 --- a/gfs2/libgfs2/fs_ops.c +++ b/gfs2/libgfs2/fs_ops.c @@ -925,8 +925,7 @@ void gfs2_put_leaf_nr(struct gfs2_inode *dip, uint32_t inx, uint64_t leaf_out) } }
-static void dir_split_leaf(struct gfs2_inode *dip, uint32_t lindex, - uint64_t leaf_no) +void dir_split_leaf(struct gfs2_inode *dip, uint32_t lindex, uint64_t leaf_no) { struct gfs2_buffer_head *nbh, *obh; struct gfs2_leaf *nleaf, *oleaf; diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h index 55847c8..043d0e1 100644 --- a/gfs2/libgfs2/libgfs2.h +++ b/gfs2/libgfs2/libgfs2.h @@ -469,6 +469,8 @@ extern void block_map(struct gfs2_inode *ip, uint64_t lblock, int *new, extern void gfs2_get_leaf_nr(struct gfs2_inode *dip, uint32_t index, uint64_t *leaf_out); extern void gfs2_put_leaf_nr(struct gfs2_inode *dip, uint32_t inx, uint64_t leaf_out); +extern void dir_split_leaf(struct gfs2_inode *dip, uint32_t lindex, + uint64_t leaf_no); extern void gfs2_free_block(struct gfs2_sbd *sdp, uint64_t block); extern int gfs2_freedi(struct gfs2_sbd *sdp, uint64_t block); extern int gfs2_get_leaf(struct gfs2_inode *dip, uint64_t leaf_no,
cluster-commits@lists.fedorahosted.org