]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: add prototype for alloc_ex_data()
authorEric Sandeen <sandeen@redhat.com>
Tue, 20 Aug 2013 23:14:17 +0000 (23:14 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 21 Aug 2013 14:05:32 +0000 (09:05 -0500)
3ac87fbf xfsprogs: fix inode crash in xfs_repair

un-static'd alloc_ex_data and used it in phase6.c,
but didn't put a prototype in a header, so:

 phase6.c: In function ‘mk_orphanage’:
 phase6.c:943: warning: implicit declaration of function ‘alloc_ex_data’

Fix it...

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
repair/incore.h

index 8a578b529f0685170516b8d29064698c2aa2aa72..38caa6dfe050b83d8d3f76f9bfce839ee5e322c7 100644 (file)
@@ -482,6 +482,11 @@ void               set_inode_parent(ino_tree_node_t *irec, int ino_offset,
                                        xfs_ino_t ino);
 xfs_ino_t      get_inode_parent(ino_tree_node_t *irec, int ino_offset);
 
+/*
+ * Allocate extra inode data
+ */
+void           alloc_ex_data(ino_tree_node_t *irec);
+
 /*
  * bmap cursor for tracking and fixing bmap btrees.  All xfs btrees number
  * the levels with 0 being the leaf and every level up being 1 greater.