diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-05-23 22:25:08 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-31 11:31:50 -0700 |
commit | 7b525dd01365c6764018e374d391c92466be1b7a (patch) | |
tree | 58b163421b659b8f6e73649e4a82c94200b5fc41 /fs/f2fs/inode.c | |
parent | 5ad25442b6f50d587c2a5cc93b31c682ff316e4c (diff) | |
download | linux-stable-7b525dd01365c6764018e374d391c92466be1b7a.tar.gz linux-stable-7b525dd01365c6764018e374d391c92466be1b7a.tar.bz2 linux-stable-7b525dd01365c6764018e374d391c92466be1b7a.zip |
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/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 3a74a1cf3264..7e7f330706d9 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -72,7 +72,7 @@ static bool __written_first_block(struct f2fs_inode *ri) { block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); - if (addr != NEW_ADDR && addr != NULL_ADDR) + if (is_valid_blkaddr(addr)) return true; return false; } |