diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 416aec6d6c65..fa70ae21d032 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -4810,7 +4810,7 @@ static int ext4_inode_blocks_set(handle_t *handle, struct ext4_inode_info *ei) { struct inode *inode = &(ei->vfs_inode); - u64 i_blocks = inode->i_blocks; + u64 i_blocks = READ_ONCE(inode->i_blocks); struct super_block *sb = inode->i_sb; if (i_blocks <= ~0U) {