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)
commit0d47c1adc2a1f1e4f4673f122a8328c90c58e232
tree21ee9e706d01f10b633036a5eea4522c509c43fc
parent944fcfc18445b22d7ad1953a6effcfbdc4ffec74
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