From 7520793df2c128f2ff00904f863df341fec6eedf Mon Sep 17 00:00:00 2001 From: mtk81325 Date: Mon, 13 Jul 2020 14:56:24 +0800 Subject: [PATCH] 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 Signed-off-by: mtk81325 Change-Id: Iae4f38774440c7d6ae44529d4f0f8ebb2ec5dacc --- fs/incfs/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/incfs/vfs.c b/fs/incfs/vfs.c index f06e75bc4164..a13330eabe7d 100644 --- a/fs/incfs/vfs.c +++ b/fs/incfs/vfs.c @@ -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);