diff options
author | Daniel Phillips <daniel@tux3.org> | 2014-05-01 16:32:26 +0900 |
---|---|---|
committer | Daniel Phillips <daniel@tux3.org> | 2014-05-01 16:32:26 +0900 |
commit | 137f3eaefbe51fd16880b807de1e299e13a5c0b4 (patch) | |
tree | 2da40dde023a4c78d0c9636d5a120f7df11c0727 | |
parent | de1550ac7128f4d337fd1b5071168d2bb4fc1b3f (diff) | |
download | linux-tux3-137f3eaefbe51fd16880b807de1e299e13a5c0b4.tar.gz |
tux3: Export countmap_used
This will be used by directory create congestion avoidance algorithm.
Signed-off-by: Daniel Phillips <d.phillips@partner.samsung.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r-- | fs/tux3/balloc.c | 2 | ||||
-rw-r--r-- | fs/tux3/tux3.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/tux3/balloc.c b/fs/tux3/balloc.c index d504470b3c8aa..d659c74a66c28 100644 --- a/fs/tux3/balloc.c +++ b/fs/tux3/balloc.c @@ -137,7 +137,7 @@ static int countmap_add_segment(struct sb *sb, block_t start, unsigned blocks, return countmap_add(sb, group, set ? blocks : -blocks); } -static int countmap_used(struct sb *sb, block_t group) +int countmap_used(struct sb *sb, block_t group) { unsigned offset = group & (sb->blockmask >> 1); struct buffer_head *buffer; diff --git a/fs/tux3/tux3.h b/fs/tux3/tux3.h index e5d230bc556fb..b235b383a7472 100644 --- a/fs/tux3/tux3.h +++ b/fs/tux3/tux3.h @@ -716,6 +716,7 @@ struct buffer_head *blockget(struct address_space *mapping, block_t iblock); /* balloc.c */ void countmap_put(struct countmap_pin *countmap_pin); +int countmap_used(struct sb *sb, block_t group); void bitmap_dump(struct inode *inode, block_t start, block_t count); int balloc_find_range(struct sb *sb, struct block_segment *seg, int maxsegs, int *segs, |