[Devel] [PATCH vz7 0/3] ext4: backport SEEK_DATA/SEEK_HOLE patches from mainline

Maxim Patlasov mpatlasov at virtuozzo.com
Wed Jul 26 07:48:59 MSK 2017


QEMU uses SEEK_DATA/SEEK_HOLE to optimize QCOW2 snapshot COW. Before
these patches it was possible to get "no extents found" from lseek(SEEK_DATA)
even if there were valid extents present.

https://jira.sw.ru/browse/PSBM-68292
---

Maxim Patlasov (3):
      ext4: fix SEEK_HOLE
      ext4: fix off-by-in in loop termination in ext4_find_unwritten_pgoff()
      ext4: fix off-by-one on max nr_pages in ext4_find_unwritten_pgoff():


 fs/ext4/file.c |   54 ++++++++++++++++--------------------------------------
 1 file changed, 16 insertions(+), 38 deletions(-)

--
Signature


More information about the Devel mailing list