summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2012-07-20 14:50:27 +0200
committerBoaz Harrosh <bharrosh@panasas.com>2012-08-02 13:58:22 +0200
commit4b74f6ea8417e48bb1fc65880a0574134a8b4745 (patch)
treec0fec691c12f1efa3f8fa74d1b113a88b98d15c7 /drivers/extcon
parentexofs: stop using s_dirt (diff)
downloadlinux-4b74f6ea8417e48bb1fc65880a0574134a8b4745.tar.xz
linux-4b74f6ea8417e48bb1fc65880a0574134a8b4745.zip
exofs: Fix __r4w_get_page when offset is beyond i_size
It is very common for the end of the file to be unaligned on stripe size. But since we know it's beyond file's end then the XOR should be preformed with all zeros. Old code used to just read zeros out of the OSD devices, which is a great waist. But what scares me more about this situation is that, we now have pages attached to the file's mapping that are beyond i_size. I don't like the kind of bugs this calls for. Fix both birds, by returning a global ZERO_PAGE, if offset is beyond i_size. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions