blob: ff66ae700b8991eeed513e210397f6639c0e5f70 [file] [log] [blame]
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -04001/*
2 * Copyright (c) 2014 Anna Schumaker <Anna.Schumaker@Netapp.com>
3 */
4
5#ifndef __LINUX_FS_NFS_NFS4_2_H
6#define __LINUX_FS_NFS_NFS4_2_H
7
Trond Myklebustbe3a5d22015-06-23 19:51:55 +08008/*
9 * FIXME: four LAYOUTSTATS calls per compound at most! Do we need to support
10 * more? Need to consider not to pre-alloc too much for a compound.
11 */
12#define PNFS_LAYOUTSTATS_MAXDEV (4)
13
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -040014/* nfs4.2proc.c */
Anna Schumakerf4ac1672014-11-25 13:18:15 -050015int nfs42_proc_allocate(struct file *, loff_t, loff_t);
Anna Schumaker624bd5b2014-11-25 13:18:16 -050016int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -040017loff_t nfs42_proc_llseek(struct file *, loff_t, int);
Trond Myklebustbe3a5d22015-06-23 19:51:55 +080018int nfs42_proc_layoutstats_generic(struct nfs_server *,
19 struct nfs42_layoutstat_data *);
Anna Schumaker1c6dcbe2014-09-26 13:58:48 -040020/* nfs4.2xdr.h */
21extern struct rpc_procinfo nfs4_2_procedures[];
22
23#endif /* __LINUX_FS_NFS_NFS4_2_H */