diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-01 01:45:15 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-08 02:34:33 -0900 |
commit | 06b73dbd7ffc0296b2ecea8d3bc55bfeb72d7f2a (patch) | |
tree | 1ba37985a18eb2d9a9616ee160c82339e23e2160 /libbcache/fs-gc.c | |
parent | 171ee48e57be78f4e95954c99851553fa523bf91 (diff) |
cmd_migratedisk-format-changes
Diffstat (limited to 'libbcache/fs-gc.c')
-rw-r--r-- | libbcache/fs-gc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbcache/fs-gc.c b/libbcache/fs-gc.c index e9585fd..e2f1427 100644 --- a/libbcache/fs-gc.c +++ b/libbcache/fs-gc.c @@ -545,9 +545,9 @@ struct nlink { u32 dir_count; }; -DECLARE_GENRADIX_TYPE(nlinks, struct nlink); +typedef GENRADIX(struct nlink) nlink_table; -static void inc_link(struct cache_set *c, struct nlinks *links, +static void inc_link(struct cache_set *c, nlink_table *links, u64 range_start, u64 *range_end, u64 inum, bool dir) { @@ -570,7 +570,7 @@ static void inc_link(struct cache_set *c, struct nlinks *links, } noinline_for_stack -static int bch_gc_walk_dirents(struct cache_set *c, struct nlinks *links, +static int bch_gc_walk_dirents(struct cache_set *c, nlink_table *links, u64 range_start, u64 *range_end) { struct btree_iter iter; @@ -776,7 +776,7 @@ fsck_err: noinline_for_stack static int bch_gc_walk_inodes(struct cache_set *c, struct bch_inode_unpacked *lostfound_inode, - struct nlinks *links, + nlink_table *links, u64 range_start, u64 range_end) { struct btree_iter iter; @@ -850,7 +850,7 @@ noinline_for_stack static int check_inode_nlinks(struct cache_set *c, struct bch_inode_unpacked *lostfound_inode) { - struct nlinks links; + nlink_table links; u64 this_iter_range_start, next_iter_range_start = 0; int ret = 0; |