x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / fs / nfsd / flexfilelayoutxdr.h
blob467defd4e56364188d689c537080ed15be74a602
1 /*
2 * Copyright (c) 2016 Tom Haynes <loghyr@primarydata.com>
3 */
4 #ifndef _NFSD_FLEXFILELAYOUTXDR_H
5 #define _NFSD_FLEXFILELAYOUTXDR_H 1
7 #include <linux/inet.h>
8 #include "xdr4.h"
10 #define FF_FLAGS_NO_LAYOUTCOMMIT 1
11 #define FF_FLAGS_NO_IO_THRU_MDS 2
12 #define FF_FLAGS_NO_READ_IO 4
14 struct xdr_stream;
16 #define FF_NETID_LEN (4)
17 #define FF_ADDR_LEN (INET6_ADDRSTRLEN + 8)
18 struct pnfs_ff_netaddr {
19 char netid[FF_NETID_LEN + 1];
20 char addr[FF_ADDR_LEN + 1];
21 u32 netid_len;
22 u32 addr_len;
25 struct pnfs_ff_device_addr {
26 struct pnfs_ff_netaddr netaddr;
27 u32 version;
28 u32 minor_version;
29 u32 rsize;
30 u32 wsize;
31 bool tightly_coupled;
34 struct pnfs_ff_layout {
35 u32 flags;
36 u32 stats_collect_hint;
37 kuid_t uid;
38 kgid_t gid;
39 struct nfsd4_deviceid deviceid;
40 stateid_t stateid;
41 struct nfs_fh fh;
44 __be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr,
45 struct nfsd4_getdeviceinfo *gdp);
46 __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr,
47 struct nfsd4_layoutget *lgp);
49 #endif /* _NFSD_FLEXFILELAYOUTXDR_H */