diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-10-19 06:04:53 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 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 { | |||
60 | #define si_stateownerid si_opaque.so_stateownerid | 60 | #define si_stateownerid si_opaque.so_stateownerid |
61 | #define si_fileid si_opaque.so_fileid | 61 | #define si_fileid si_opaque.so_fileid |
62 | 62 | ||
63 | #define STATEID_FMT "(%08x/%08x/%08x/%08x)" | ||
64 | #define STATEID_VAL(s) \ | ||
65 | (s)->si_boot, \ | ||
66 | (s)->si_stateownerid, \ | ||
67 | (s)->si_fileid, \ | ||
68 | (s)->si_generation | ||
69 | |||
63 | struct nfsd4_cb_sequence { | 70 | struct nfsd4_cb_sequence { |
64 | /* args/res */ | 71 | /* args/res */ |
65 | u32 cbs_minorversion; | 72 | u32 cbs_minorversion; |