summaryrefslogtreecommitdiff
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-05-23 22:25:08 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-07-08 17:30:10 -0700
commit461247b21fde524b9022dcadb2a8e751ab520a55 (patch)
treede808cfecebd23f737ba9c9f46882cf022c836dd /fs/f2fs/file.c
parenta5d0ccbc189a02a0931d7a3ee092d64f89d69f0f (diff)
f2fs: clean up with is_valid_blkaddr()
- rename is_valid_blkaddr() to is_valid_meta_blkaddr() for readability. - introduce is_valid_blkaddr() for cleanup. No logic change in this patch. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index ae21400d3ad5..0fb9f15f2068 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -354,7 +354,7 @@ static bool __found_offset(block_t blkaddr, pgoff_t dirty, pgoff_t pgofs,
switch (whence) {
case SEEK_DATA:
if ((blkaddr == NEW_ADDR && dirty == pgofs) ||
- (blkaddr != NEW_ADDR && blkaddr != NULL_ADDR))
+ is_valid_blkaddr(blkaddr))
return true;
break;
case SEEK_HOLE: