From: Joseph Qi Date: Wed, 4 Jun 2014 23:06:17 +0000 (-0700) Subject: ocfs2: fix incorrect i_size of global bitmap inode after resize X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~242 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17bf1418b78d9c51370f29c2b840f7d0a1bf311a;p=pandora-kernel.git ocfs2: fix incorrect i_size of global bitmap inode after resize Ocfs2 cluster size may be 1MB, which has 20 bits. When resize, the input new clusters is mostly the number of clusters in a group descriptor(32256). Since the input clusters is defined as type int, so it will overflow when shift left 20 bits and then lead to incorrect global bitmap i_size. Signed-off-by: Joseph Qi Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed