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: Peng Zhou <Peng.Zhou@mediatek.com>
Signed-off-by: mtk81325 <peng.zhou@mediatek.com>
Change-Id: Iae4f38774440c7d6ae44529d4f0f8ebb2ec5dacc
This commit is contained in:
mtk81325 2020-07-13 14:56:24 +08:00 committed by Paul Lawrence
parent e9cd5b2daa
commit 7520793df2

View file

@ -2177,7 +2177,7 @@ struct dentry *incfs_mount_fs(struct file_system_type *type, int flags,
sb->s_op = &incfs_super_ops; sb->s_op = &incfs_super_ops;
sb->s_d_op = &incfs_dentry_ops; sb->s_d_op = &incfs_dentry_ops;
sb->s_flags |= S_NOATIME; 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_time_gran = 1;
sb->s_blocksize = INCFS_DATA_FILE_BLOCK_SIZE; sb->s_blocksize = INCFS_DATA_FILE_BLOCK_SIZE;
sb->s_blocksize_bits = blksize_bits(sb->s_blocksize); sb->s_blocksize_bits = blksize_bits(sb->s_blocksize);