Skip to content

Commit

Permalink
rafs: reclaim used memory of tailer page in case of flat plain mode
Browse files Browse the repository at this point in the history
When the directory inode is in flat plain mode, there may be space left
in the tailer page, so reclaim it.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
  • Loading branch information
jiangliu committed Mar 16, 2023
1 parent eafe69c commit b246e2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rafs/src/builder/core/v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ impl Node {
bootstrap_ctx.align_offset(block_size);
self.v6_dirents_offset = bootstrap_ctx.offset;
bootstrap_ctx.offset += d_size;
bootstrap_ctx.append_available_block(bootstrap_ctx.offset, block_size);
bootstrap_ctx.align_offset(block_size);

EROFS_INODE_FLAT_PLAIN
Expand Down

0 comments on commit b246e2b

Please sign in to comment.