summaryrefslogtreecommitdiffstats
path: root/fs/openpromfs
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2015-04-03 00:09:13 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-04-03 00:09:13 -0400
commit0f2af21aae11972fa924374ddcf52e88347cf5a8 (patch)
tree753b0c67fecebe1cc2bf15ca775b9ea13312b85c /fs/openpromfs
parent5a4f3145aa685ddc2caf424763d42d3eaaebbc6f (diff)
downloadop-kernel-dev-0f2af21aae11972fa924374ddcf52e88347cf5a8.zip
op-kernel-dev-0f2af21aae11972fa924374ddcf52e88347cf5a8.tar.gz
ext4: allocate entire range in zero range
Currently there is a bug in zero range code which causes zero range calls to only allocate block aligned portion of the range, while ignoring the rest in some cases. In some cases, namely if the end of the range is past i_size, we do attempt to preallocate the last nonaligned block. However this might cause kernel to BUG() in some carefully designed zero range requests on setups where page size > block size. Fix this problem by first preallocating the entire range, including the nonaligned edges and converting the written extents to unwritten in the next step. This approach will also give us the advantage of having the range to be as linearly contiguous as possible. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/openpromfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud