pnfs/blocklayout: implement the return_range method
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Sep 2014 15:23:35 +0000 (08:23 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:03 +0000 (12:47 -0700)
commit71d5b76302e21390b4ab747875de6bd5cfbca979
tree00f81f6bead7fb6acf3b08465c4c501c6a15bc3d
parent8067253c8cc531b6f367b9f5942bdc6168385701
pnfs/blocklayout: implement the return_range method

This allows removing extents from the extent tree especially on truncate
operations, and thus fixing reads from truncated and re-extended that
previously returned stale data.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/blocklayout.c