aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAsias He <[email protected]>2013-02-25 14:03:42 +0800
committerNicholas Bellinger <[email protected]>2013-04-25 01:05:23 -0700
commit70d3ae5c80758cb2bf3cf1e0d5b2c89d040de90b (patch)
treeafee073ae3aa38326b8f0a4b2e4655cb7b463181 /net/unix/sysctl_net_unix.c
parentc0c2dd499b7ae3d4d314ef2965ee2387848a39d9 (diff)
target/file: Add WRITE_SAME w/ UNMAP=1 emulation support
This patch adds support for emulation of WRITE_SAME w/ UNMAP=1 within fd_execute_write_same_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(). Tested with 512, 1k, 2k, and 4k block_sizes. Changes in v2: - Set the various dev->dev_attrib.*unmap* values (nab) Cc: Christoph Hellwig <[email protected]> Cc: Martin K. Petersen <[email protected]> Cc: Nicholas Bellinger <[email protected]> Signed-off-by: Asias He <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions