From c88953d87f5c8cd95bebcbd6d15f2f0cdd348136 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 10 Sep 2014 08:23:31 -0700 Subject: [PATCH] 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 Signed-off-by: Trond Myklebust --- Reading git-format-patch failed