]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ext4: fix handling of files with sparse blocks before extent's index.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Thu, 11 Feb 2016 00:34:11 +0000 (00:34 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Thu, 11 Feb 2016 00:34:11 +0000 (00:34 +0000)
commit78f6ea5440f43a014c10e03d32b6901f86cc65d8
tree9fb1e8b8b08f15b79d3e4bbc45a79f796588b568
parent656cbd27d2cc7e864207ba71d10d9cd681e7f0ef
Ext4: fix handling of files with sparse blocks before extent's index.

This is ongoing work from Damjan Jovanovic to improve ext4 read support
with sparse files:

Keep track of the first and last block in each extent as it descends down
the extent tree, thus being able to work out that some blocks are sparse
earlier. This solves an issue on r293680.

In ext4_bmapext() start supporting the runb parameter, which appears to be
the number of adjacent blocks prior to the block being converted in the
same way that runp is the number of blocks after, speding up random access
to mmaped files.

PR: 206652
sys/fs/ext2fs/ext2_bmap.c
sys/fs/ext2fs/ext2_extents.c