Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: cleanup statement about max orphan inodes calc

Through each macro, we can read the meaning easily.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Changman Lee and committed by
Jaegeuk Kim
e0150392 d9f46bb1

-7
-7
fs/f2fs/checkpoint.c
··· 1104 1104 im->ino_num = 0; 1105 1105 } 1106 1106 1107 - /* 1108 - * considering 512 blocks in a segment 8+cp_payload blocks are 1109 - * needed for cp and log segment summaries. Remaining blocks are 1110 - * used to keep orphan entries with the limitation one reserved 1111 - * segment for cp pack we can have max 1020*(504-cp_payload) 1112 - * orphan entries 1113 - */ 1114 1107 sbi->max_orphans = (sbi->blocks_per_seg - F2FS_CP_PACKS - 1115 1108 NR_CURSEG_TYPE - __cp_payload(sbi)) * 1116 1109 F2FS_ORPHANS_PER_BLOCK;