diff options
| author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-11-25 13:18:16 -0500 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-11-25 16:38:32 -0500 |
| commit | 624bd5b7b683c978c6d5f4e9f6142cfb3470983d (patch) | |
| tree | dcbe9728ea9a6ef12b57c63aec6b34b872a42542 /include/linux | |
| parent | f4ac1674f5da420ef17896f0f222c5215ebcde80 (diff) | |
nfs: Add DEALLOCATE support
This patch adds support for using the NFS v4.2 operation DEALLOCATE to
punch holes in a file.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs4.h | 1 | ||||
| -rw-r--r-- | include/linux/nfs_fs_sb.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index 2b28a21edcd0..022b761dbf0a 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
| @@ -491,6 +491,7 @@ enum { | |||
| 491 | /* nfs42 */ | 491 | /* nfs42 */ |
| 492 | NFSPROC4_CLNT_SEEK, | 492 | NFSPROC4_CLNT_SEEK, |
| 493 | NFSPROC4_CLNT_ALLOCATE, | 493 | NFSPROC4_CLNT_ALLOCATE, |
| 494 | NFSPROC4_CLNT_DEALLOCATE, | ||
| 494 | }; | 495 | }; |
| 495 | 496 | ||
| 496 | /* nfs41 types */ | 497 | /* nfs41 types */ |
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index df6ed429b406..1e37fbb78f7a 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
| @@ -232,5 +232,6 @@ struct nfs_server { | |||
| 232 | #define NFS_CAP_SECURITY_LABEL (1U << 18) | 232 | #define NFS_CAP_SECURITY_LABEL (1U << 18) |
| 233 | #define NFS_CAP_SEEK (1U << 19) | 233 | #define NFS_CAP_SEEK (1U << 19) |
| 234 | #define NFS_CAP_ALLOCATE (1U << 20) | 234 | #define NFS_CAP_ALLOCATE (1U << 20) |
| 235 | #define NFS_CAP_DEALLOCATE (1U << 21) | ||
| 235 | 236 | ||
| 236 | #endif | 237 | #endif |
