diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 07237ac2935e..e622ec95409e 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -53,7 +53,9 @@ static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri) static bool __written_first_block(struct f2fs_inode *ri) { - if (ri->i_addr[0] != NEW_ADDR && ri->i_addr[0] != NULL_ADDR) + block_t addr = le32_to_cpu(ri->i_addr[0]); + + if (addr != NEW_ADDR && addr != NULL_ADDR) return true; return false; } |