aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_icache.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-10-24 14:20:25 +1100
committerDave Chinner <david@fromorbit.com>2016-10-24 14:20:25 +1100
commitc663e29f8885269c1608b5aa6057729fa9267b35 (patch)
treefffb106bd365d9f74d14ef9519edbf265e9f228a /fs/xfs/xfs_icache.c
parentxfs: remove xfs_bunmapi_cow (diff)
downloadlinux-dev-c663e29f8885269c1608b5aa6057729fa9267b35.tar.xz
linux-dev-c663e29f8885269c1608b5aa6057729fa9267b35.zip
fs: Do to trim high file position bits in iomap_page_mkwrite_actor
iomap_page_mkwrite_actor() calls __block_write_begin_int() with position masked as pos & ~PAGE_MASK which is equivalent to pos & (PAGE_SIZE-1). Thus it masks off high bits of file position. However __block_write_begin_int() expects full file position on input. This does not cause any visible issues because all __block_write_begin_int() really cares about are low file position bits but still it is a bug waiting to happen. Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_icache.c')
0 files changed, 0 insertions, 0 deletions