blob: 901cca7542f944ce8829131d4262aee5529c0df0 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -04002/*
3 * Copyright (c) 2014 Anna Schumaker <Anna.Schumaker@Netapp.com>
4 */
5
6#ifndef __LINUX_FS_NFS_NFS4_2_H
7#define __LINUX_FS_NFS_NFS4_2_H
8
Trond Myklebustbe3a5d22015-06-23 19:51:55 +08009/*
10 * FIXME: four LAYOUTSTATS calls per compound at most! Do we need to support
11 * more? Need to consider not to pre-alloc too much for a compound.
12 */
13#define PNFS_LAYOUTSTATS_MAXDEV (4)
14
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -040015/* nfs4.2proc.c */
Anna Schumakerf4ac1672014-11-25 13:18:15 -050016int nfs42_proc_allocate(struct file *, loff_t, loff_t);
Anna Schumaker2e724482013-05-21 16:53:03 -040017ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t);
Anna Schumaker624bd5b2014-11-25 13:18:16 -050018int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -040019loff_t nfs42_proc_llseek(struct file *, loff_t, int);
Trond Myklebustbe3a5d22015-06-23 19:51:55 +080020int nfs42_proc_layoutstats_generic(struct nfs_server *,
21 struct nfs42_layoutstat_data *);
Peng Taoe5341f32015-09-26 02:24:35 +080022int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
Trond Myklebust3eb86092019-02-08 10:31:05 -050023int nfs42_proc_layouterror(struct pnfs_layout_segment *lseg,
24 const struct nfs42_layout_error *errors,
25 size_t n);
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -040026
27#endif /* __LINUX_FS_NFS_NFS4_2_H */