Searched hist:b8a742a8bd6dbc40894cd78fb34d99aabe4a1f81 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/f2fs/ |
H A D | f2fs.h | diff b8a742a8bd6dbc40894cd78fb34d99aabe4a1f81 Mon Feb 19 21:15:15 CST 2024 Chao Yu <chao@kernel.org> f2fs: introduce get_available_block_count() for cleanup
[ Upstream commit 0f1c6ede6da9f7c5dd7380b74a64850298279168 ]
There are very similar codes in inc_valid_block_count() and inc_valid_node_count() which is used for available user block count calculation.
This patch introduces a new helper get_available_block_count() to include those common codes, and used it to clean up codes.
Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Stable-dep-of: 043c832371cd ("f2fs: compress: fix error path of inc_valid_block_count()") Signed-off-by: Sasha Levin <sashal@kernel.org>
|