diff options
author | Joseph Qi <joseph.qi@huawei.com> | 2014-06-05 01:06:17 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 01:53:54 +0200 |
commit | 17bf1418b78d9c51370f29c2b840f7d0a1bf311a (patch) | |
tree | 3be1bc2fe567f37c322bd1f4c1b5593e1b959bcc /lib/fdt_rw.c | |
parent | ocfs2: cleanup unused paramters in ocfs2_calc_new_backup_super (diff) | |
download | linux-17bf1418b78d9c51370f29c2b840f7d0a1bf311a.tar.xz linux-17bf1418b78d9c51370f29c2b840f7d0a1bf311a.zip |
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 <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/fdt_rw.c')
0 files changed, 0 insertions, 0 deletions