Chao Yu dba79f38bc f2fs: fix to avoid overflow when left shifting page offset
We use following method to calculate size with current page index:
size = index << PAGE_SHIFT
If type of index has only 32-bits size, left shifting will incur overflow,
which makes result incorrect.

So let's cast index with 64-bits type to avoid such issue.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-02-22 20:24:51 -08:00
..
2016-09-14 16:52:36 -07:00
2017-02-22 20:24:49 -08:00
2016-11-23 12:11:12 -08:00
2017-01-29 12:46:01 +09:00
2017-02-22 18:48:48 -08:00
2016-12-14 09:07:36 -08:00
2016-06-07 13:41:38 -06:00
2017-02-22 20:24:51 -08:00
2017-02-22 20:24:51 -08:00