Whamcloud - gitweb
LU-6464 ldiskfs: 64bit pointers in ext4_map_inode_page() 63/14463/6
authorArtem Blagodarenko <artem_blagodarenko@xyratex.com>
Mon, 18 May 2015 14:20:14 +0000 (10:20 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 Jun 2015 01:54:02 +0000 (01:54 +0000)
commit6f0f73eb72f63c8988aa89e2bf05f24b6588e584
tree3e150bee85ea9580341fa7f671c23d1dc6cfb536
parent993858982eda2c7a7179b6c67c2d425df8e692f8
LU-6464 ldiskfs: 64bit pointers in ext4_map_inode_page()

To support >128TB OST ldiskfs should operates with large
blocks numbers. There is function ext4_map_inode_page() with
parameter “unsigned long *blocks”. An overflow is possible
for large blocks numbers. The problem is actual for x86_32
systems only.

This patch changes parameter type to sector_t that is 64 bit.

Xyratex-bug-id: MRP-2020
Signed-off-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Change-Id: If36544f39d3d31df9ff5ed644dad20f4910f3b39
Reviewed-on: http://review.whamcloud.com/14463
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
ldiskfs/kernel_patches/patches/rhel6.3/ext4-map_inode_page-2.6.18.patch
ldiskfs/kernel_patches/patches/sles11sp2/ext4-map_inode_page-3.0.patch
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_lproc.c