summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2019-05-28 11:23:33 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2019-05-30 18:48:45 +0200
commit36af5f407bbb2da6dd9809dd6f173dd377b57d74 (patch)
treea9963a62af82d78fca9e21e2532035a4e11a2543 /fs/f2fs/node.c
parentf2fs: fix f2fs_show_options to show nodiscard mount option (diff)
downloadlinux-36af5f407bbb2da6dd9809dd6f173dd377b57d74.tar.xz
linux-36af5f407bbb2da6dd9809dd6f173dd377b57d74.zip
f2fs: fix sparse warning
make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__" CHECK dir.c dir.c:842:50: warning: cast from restricted __le32 CHECK node.c node.c:2759:40: warning: restricted __le32 degrades to integer Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 18a038a2a9fa..865f1525df32 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -2725,7 +2725,7 @@ static void __update_nat_bits(struct f2fs_sb_info *sbi, nid_t start_nid,
i = 1;
}
for (; i < NAT_ENTRY_PER_BLOCK; i++) {
- if (nat_blk->entries[i].block_addr != NULL_ADDR)
+ if (le32_to_cpu(nat_blk->entries[i].block_addr) != NULL_ADDR)
valid++;
}
if (valid == 0) {