We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c99fab6 commit 0b96d9bCopy full SHA for 0b96d9b
fs/erofs/super.c
@@ -323,8 +323,8 @@ static int erofs_read_superblock(struct super_block *sb)
323
sbi->islotbits = ilog2(sizeof(struct erofs_inode_compact));
324
if (erofs_sb_has_48bit(sbi) && dsb->rootnid_8b) {
325
sbi->root_nid = le64_to_cpu(dsb->rootnid_8b);
326
- sbi->dif0.blocks = (sbi->dif0.blocks << 32) |
327
- le16_to_cpu(dsb->rb.blocks_hi);
+ sbi->dif0.blocks = sbi->dif0.blocks |
+ ((u64)le16_to_cpu(dsb->rb.blocks_hi) << 32);
328
} else {
329
sbi->root_nid = le16_to_cpu(dsb->rb.rootnid_2b);
330
}
0 commit comments