]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: convert max_orphans to a field of f2fs_sb_info
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Thu, 26 Dec 2013 10:24:19 +0000 (18:24 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 26 Dec 2013 11:37:52 +0000 (20:37 +0900)
commitcb8f0826a2e03526e5a80ed9668ebc72256228ad
tree21ee9e706d01f10b633036a5eea4522c509c43fc
parent8a58c815db56c6c6c9bb0a8eca0d334b1099ba30
f2fs: convert max_orphans to a field of f2fs_sb_info

Previously, we need to calculate the max orphan num when we try to acquire an
orphan inode, but it's a stable value since the super block was inited. So
converting it to a field of f2fs_sb_info and use it directly when needed seems
a better choose.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h