diff options
author | Benny Halevy | 2009-10-19 12:04:53 +0200 |
---|---|---|
committer | J. Bruce Fields | 2009-11-05 12:06:29 -0500 |
commit | 8c10cbdb4af642d9a2efb45ea89251aaab905360 (patch) | |
tree | 5d3527560565ed0a9d392368b14c581db5707c79 /include/linux/nfsd | |
parent | 1b7e0403c6a72d18bebd4f2a6858b6c69c4bd428 (diff) |
nfsd: use STATEID_FMT and STATEID_VAL for printing stateids
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r-- | include/linux/nfsd/state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index b38d11324189..5aadf8aa3a97 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h @@ -60,6 +60,13 @@ typedef struct { #define si_stateownerid si_opaque.so_stateownerid #define si_fileid si_opaque.so_fileid +#define STATEID_FMT "(%08x/%08x/%08x/%08x)" +#define STATEID_VAL(s) \ + (s)->si_boot, \ + (s)->si_stateownerid, \ + (s)->si_fileid, \ + (s)->si_generation + struct nfsd4_cb_sequence { /* args/res */ u32 cbs_minorversion; |