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

Commit 82fdfa92 authored by Jan Kara's avatar Jan Kara
Browse files

quota: Fix 64-bit limits setting on 32-bit archs



Fix warnings:
fs/quota/quota_v2.c: In function ‘v2_read_file_info’:
fs/quota/quota_v2.c:123: warning: integer constant is too large for ‘long’ type
fs/quota/quota_v2.c:124: warning: integer constant is too large for ‘long’ type

Reported-by: default avatarJerry Leo <jerryleo860202@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 96d2a495
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,8 +120,8 @@ static int v2_read_file_info(struct super_block *sb, int type)
		info->dqi_maxilimit = 0xffffffff;
	} else {
		/* used space is stored as unsigned 64-bit value */
		info->dqi_maxblimit = 0xffffffffffffffff;	/* 2^64-1 */
		info->dqi_maxilimit = 0xffffffffffffffff;
		info->dqi_maxblimit = 0xffffffffffffffffULL;	/* 2^64-1 */
		info->dqi_maxilimit = 0xffffffffffffffffULL;
	}
	info->dqi_bgrace = le32_to_cpu(dinfo.dqi_bgrace);
	info->dqi_igrace = le32_to_cpu(dinfo.dqi_igrace);