From: Namjae Jeon Date: Sun, 16 Jun 2013 00:49:11 +0000 (+0900) Subject: f2fs: optimize the init_dirty_segmap function X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~81^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8736fbf00372dcc0bc7b04b86d737eb5db31fff6;p=pandora-kernel.git f2fs: optimize the init_dirty_segmap function Optimize the while loop condition Since this condition will always be true and while loop will be terminated by the following condition in code: if (segno >= TOTAL_SEGS(sbi)) break; Hence we can replace the while loop condition with while(1) instead of always checking for segno to be less than Total segs. Also we do not need to use TOTAL_SEGS() everytime. We can store this value in a local variable since this value is constant. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed