f2fs: sync upstream for avoid gcc warning

fs/f2fs/inode.c: In function 'sanity_check_inode':
warning: format '%lu' expects argument of type 'long unsigned int',
but argument 6 has type 'blkcnt_t {aka long long unsigned int}'

Change-Id: Ibc600242dbdc600dd31111b5ba1413c329e26c5e
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-06-10 21:37:21 +08:00
parent 17823171af
commit 5bd3bf5983

View File

@@ -301,10 +301,10 @@ static bool sanity_check_inode(struct inode *inode, struct page *node_page)
if (le64_to_cpu(ri->i_compr_blocks) >
SECTOR_TO_BLOCK(inode->i_blocks)) {
f2fs_warn(sbi, "%s: inode (ino=%lx) has inconsistent "
"i_compr_blocks:%llu, i_blocks:%lu, run fsck to fix",
"i_compr_blocks:%llu, i_blocks:%llu, run fsck to fix",
__func__, inode->i_ino,
le64_to_cpu(ri->i_compr_blocks),
SECTOR_TO_BLOCK(inode->i_blocks));
(u64)SECTOR_TO_BLOCK(inode->i_blocks));
return false;
}
if (ri->i_log_cluster_size < MIN_COMPRESS_LOG_SIZE ||