Chao Yu 4c2ac6a860 f2fs: clean up f2fs_map_blocks
f2fs_map_blocks():

if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR) {
	if (create) {
		...
	} else {
		...
		if (flag == F2FS_GET_BLOCK_FIEMAP &&
					blkaddr == NULL_ADDR) {
			...
		}
		if (flag != F2FS_GET_BLOCK_FIEMAP ||
					blkaddr != NEW_ADDR)
			goto sync_out;
	}

It means we can break the loop in cases of:
a) flag != F2FS_GET_BLOCK_FIEMAP or
b) flag == F2FS_GET_BLOCK_FIEMAP && blkaddr == NULL_ADDR

Condition b) is the same as previous one, so merge operations of them
for readability.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2018-01-02 19:27:30 -08:00
..
2016-09-14 16:52:36 -07:00
2018-01-02 19:27:29 -08:00
2018-01-02 19:27:30 -08:00
2018-01-02 19:27:29 -08:00
2018-01-02 19:27:30 -08:00
2018-01-02 19:27:29 -08:00
2017-10-10 12:49:53 -07:00
2017-11-16 12:10:21 -08:00
2018-01-02 19:27:29 -08:00
2018-01-02 19:27:29 -08:00
2017-10-26 10:44:21 +02:00
2018-01-02 19:27:27 -08:00
2018-01-02 19:27:29 -08:00
2017-10-10 12:49:53 -07:00
2018-01-02 19:27:30 -08:00
2018-01-02 19:27:29 -08:00