diff options
| author | Anna Schumaker <anna.schumaker@oracle.com> | 2025-04-11 22:47:32 +0300 |
|---|---|---|
| committer | Anna Schumaker <anna.schumaker@oracle.com> | 2025-05-29 00:17:13 +0300 |
| commit | d2e1d783f2c619cf9d8242b67a0ab0d2915f2920 (patch) | |
| tree | 02f4984704ffd936beff6713ecc07be3229a990d /drivers/cdx/controller/cdx_controller.c | |
| parent | 4c10fa44bc5f700e2ea21de2fbae520ba21f19d9 (diff) | |
| download | linux-d2e1d783f2c619cf9d8242b67a0ab0d2915f2920.tar.xz | |
NFS: Add support for fallocate(FALLOC_FL_ZERO_RANGE)
This implements a suggestion from Trond that we can mimic
FALLOC_FL_ZERO_RANGE by sending a compound that first does a DEALLOCATE
to punch a hole in a file, and then an ALLOCATE to fill the hole with
zeroes. There might technically be a race here, but once the DEALLOCATE
finishes any reads from the region would return zeroes anyway, so I
don't expect it to cause problems.
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
