Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7520793d authored by mtk81325's avatar mtk81325 Committed by Paul Lawrence
Browse files

ANDROID: Incremental fs: magic number compatible 32-bit



Incfs's magic is bigger than 32-bit, but super block structure's
s_magic is unsigned long which is 32-bit in ARM 32-bit platform.

Do the cast for magic!

Bug: 159772865
Signed-off-by: default avatarPeng Zhou <Peng.Zhou@mediatek.com>
Signed-off-by: default avatarmtk81325 <peng.zhou@mediatek.com>
Change-Id: Iae4f38774440c7d6ae44529d4f0f8ebb2ec5dacc
parent e9cd5b2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2177,7 +2177,7 @@ struct dentry *incfs_mount_fs(struct file_system_type *type, int flags,
	sb->s_op = &incfs_super_ops;
	sb->s_d_op = &incfs_dentry_ops;
	sb->s_flags |= S_NOATIME;
	sb->s_magic = INCFS_MAGIC_NUMBER;
	sb->s_magic = (long)INCFS_MAGIC_NUMBER;
	sb->s_time_gran = 1;
	sb->s_blocksize = INCFS_DATA_FILE_BLOCK_SIZE;
	sb->s_blocksize_bits = blksize_bits(sb->s_blocksize);