f2fs: avoid to calculate incorrect max orphan number
authorChao Yu <chao2.yu@samsung.com>
Fri, 29 Nov 2013 08:37:00 +0000 (16:37 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:04 +0000 (10:18 +0900)
commit6947eea957e4c4c873f92a4ee5da7a6ef0012718
tree0c6c7c5410554c9dc95e880944ebd1d18e6cec1d
parenta66c7b2fcfbc9ef4e972f6bc2b63d72d00f23122
f2fs: avoid to calculate incorrect max orphan number

Because we will write node summaries when do_checkpoint with umount flag,
our number of max orphan blocks should minus NR_CURSEG_NODE_TYPE additional.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Shu Tan <shu.tan@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c