Message ID | 1380220848-13325-1-git-send-email-bhalevy@primarydata.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/linux/nfsd/nfsd4_pnfs.h b/include/linux/nfsd/nfsd4_pnfs.h index 53a0bb7..28f9daa 100644 --- a/include/linux/nfsd/nfsd4_pnfs.h +++ b/include/linux/nfsd/nfsd4_pnfs.h @@ -42,6 +42,13 @@ struct nfsd4_pnfs_deviceid { u64 devid; /* filesystem-wide unique device ID */ }; +static inline __be32 *nfsd4_encode_deviceid(__be32 *p, + const struct nfsd4_pnfs_deviceid *dp) +{ + p = exp_xdr_encode_u64(p, dp->sbid); + return exp_xdr_encode_u64(p, dp->devid); +} + struct nfsd4_pnfs_dev_iter_res { u64 gd_cookie; /* request/repsonse */ u64 gd_verf; /* request/repsonse */
Signed-off-by: Benny Halevy <bhalevy@primarydata.com> --- include/linux/nfsd/nfsd4_pnfs.h | 7 +++++++ 1 file changed, 7 insertions(+)