]> git.neil.brown.name Git - LaFS.git/commitdiff
export lafs_dir_print
authorNeilBrown <neilb@suse.de>
Fri, 25 Jun 2010 09:21:47 +0000 (19:21 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 27 Jun 2010 23:15:00 +0000 (09:15 +1000)
so dir.c can use it for debugging.

Signed-off-by: NeilBrown <neilb@suse.de>
dir-avl.c
lafs.h

index f3fa59e86bdebd1cfe201019a1c6281fa086bb48..95c409dde94cdcc237475b61d059e06139f4341c 100644 (file)
--- a/dir-avl.c
+++ b/dir-avl.c
@@ -17,7 +17,6 @@
 
 /* TEA_transform borrowed from ext3 */
 #define DELTA 0x9E3779B9
-static void dir_print(char *buf, int psz);
 
 static void TEA_transform(u32 buf[2], u32 const in[4])
 {
@@ -897,7 +896,7 @@ int lafs_dir_blk_size(char *block, int psz)
 static void xprintk(char *block, int psz, char *s, int a, int b, int c, int d)
 {
        printk(s, a, b, c, d);
-       dir_print(block, psz);
+       lafs_dir_print(block, psz);
        BUG();
 }
 
@@ -1010,7 +1009,7 @@ static void dir_print_block(char *block, int psz, int sort)
                }
        }
 }
-static void dir_print(char *buf, int psz)
+void lafs_dir_print(char *buf, int psz)
 {
        dir_print_block(buf, psz, 1);
 }
diff --git a/lafs.h b/lafs.h
index 1408c97db7b020e29b512c9ac26e076caecf775a..a439fb906e4ef8c1187607f3a0740a60d9db423b 100644 (file)
--- a/lafs.h
+++ b/lafs.h
@@ -487,6 +487,7 @@ struct update_handle {
        int reserved;
 };
 
+void lafs_dir_print(char *buf, int psz);
 int lafs_dir_blk_size(char *block, int psz);
 void lafs_dir_clearparent(struct datablock *b);
 struct block *lafs_dir_drop_parent(struct datablock *b);