kernel_optimize_test/fs/f2fs
Namjae Jeon 8736fbf003 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 <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2013-07-02 08:48:14 +09:00
..
acl.c f2fs: support xattr security labels 2013-06-11 16:01:03 +09:00
acl.h
checkpoint.c f2fs: fix crc endian conversion 2013-07-02 08:47:35 +09:00
data.c f2fs: optimize do_write_data_page() 2013-06-14 09:04:44 +09:00
debug.c f2fs: use list_for_each_entry rather than list_for_each_entry_safe 2013-05-28 15:03:02 +09:00
dir.c f2fs: recover wrong pino after checkpoint during fsync 2013-06-14 09:04:45 +09:00
f2fs.h f2fs: fix crc endian conversion 2013-07-02 08:47:35 +09:00
file.c f2fs: recover wrong pino after checkpoint during fsync 2013-06-14 09:04:45 +09:00
gc.c f2fs: reorganise the function get_victim_by_default 2013-06-06 14:20:46 +09:00
gc.h
hash.c
inode.c f2fs: avoid freqeunt write_inode calls 2013-06-14 09:04:43 +09:00
Kconfig f2fs: support xattr security labels 2013-06-11 16:01:03 +09:00
Makefile
namei.c f2fs: recover wrong pino after checkpoint during fsync 2013-06-14 09:04:45 +09:00
node.c f2fs: support xattr security labels 2013-06-11 16:01:03 +09:00
node.h f2fs: recover wrong pino after checkpoint during fsync 2013-06-14 09:04:45 +09:00
recovery.c f2fs: fix an endian conversion bug detected by sparse 2013-07-02 08:48:13 +09:00
segment.c f2fs: optimize the init_dirty_segmap function 2013-07-02 08:48:14 +09:00
segment.h
super.c f2fs: add remount_fs callback support 2013-06-17 21:17:55 +09:00
xattr.c f2fs: support xattr security labels 2013-06-11 16:01:03 +09:00
xattr.h f2fs: support xattr security labels 2013-06-11 16:01:03 +09:00