From: Sage Weil Date: Sat, 11 Sep 2010 17:55:25 +0000 (-0700) Subject: ceph: fix file offset wrapping at 4GB on 32-bit archs X-Git-Tag: v2.6.36-rc6~84^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a77d9f7dce7600058d56f0670ed29d77abffcde2;p=pandora-kernel.git ceph: fix file offset wrapping at 4GB on 32-bit archs Cast the value before shifting so that we don't run out of bits with a 32-bit unsigned long. This fixes wrapping of high file offsets into the low 4GB of a file on disk, and the subsequent data corruption for large files. Signed-off-by: Sage Weil --- Reading git-diff-tree failed