summaryrefslogtreecommitdiffstats
path: root/fs/ceph/inode.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-09-11 19:55:25 +0200
committerSage Weil <sage@newdream.net>2010-09-11 19:55:25 +0200
commita77d9f7dce7600058d56f0670ed29d77abffcde2 (patch)
tree60c0b90d2f3af86e9d65641f61ceca075ed61fdf /fs/ceph/inode.c
parentceph: fix reconnect encoding for old servers (diff)
downloadlinux-a77d9f7dce7600058d56f0670ed29d77abffcde2.tar.xz
linux-a77d9f7dce7600058d56f0670ed29d77abffcde2.zip
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 <sage@newdream.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions