From: Asias He Date: Mon, 25 Feb 2013 06:03:43 +0000 (+0800) Subject: target/file: Add UNMAP emulation support X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~96^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=506427628afeb5d70eefdac1fe4c2a1ffb27df5f;p=pandora-kernel.git target/file: Add UNMAP emulation support This patch adds support for emulation of UNMAP within fd_execute_unmap() backend code. If the FILEIO backend is normal file, the emulation uses fallocate to punch hole to reclaim the free space used by the file. If the FILEIO backend is block device, the emulation uses blkdev_issue_discard(). Cc: Christoph Hellwig Cc: Martin K. Petersen Cc: Nicholas Bellinger Signed-off-by: Asias He Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed