]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pnfs: add return_range method
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Sep 2014 15:23:31 +0000 (08:23 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:03 +0000 (12:47 -0700)
commitc88953d87f5c8cd95bebcbd6d15f2f0cdd348136
tree6805b3c8feb934404205d5e79a2cf37dde87647f
parent612aa983a041056c3368aacfdc9febd406d245a8
pnfs: add return_range method

If a layout driver keeps per-inode state outside of the layout segments it
needs to be notified of any layout returns or recalls on an inode, and not
just about the freeing of layout segments.  Add a method to acomplish this,
which will allow the block layout driver to handle the case of truncated
and re-expanded files properly.

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