]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: merge equivalent flags F2FS_GET_BLOCK_[READ|DIO]
authorQiuyang Sun <sunqiuyang@huawei.com>
Wed, 9 Aug 2017 09:27:30 +0000 (17:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 21 Aug 2017 22:55:02 +0000 (15:55 -0700)
commit33102d12f63ecd2b726fd37ca3ef305fa4fd81b2
tree4f04c472de95dbf4ccaebf49a7ef76831f981717
parent217c17f70d65a84569f94d35d4fc7a5b9f54f145
f2fs: merge equivalent flags F2FS_GET_BLOCK_[READ|DIO]

Currently, the two flags F2FS_GET_BLOCK_[READ|DIO] are totally equivalent
and can be used interchangably in all scenarios they are involved in.
Neither of the flags is referenced in f2fs_map_blocks(), making them both
the default case. To remove the ambiguity, this patch merges both flags
into F2FS_GET_BLOCK_DEFAULT, and introduces an enum for all distinct flags.

Signed-off-by: Qiuyang Sun <sunqiuyang@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c