diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-10-19 12:04:53 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-11-05 12:06:29 -0500 |
commit | 8c10cbdb4af642d9a2efb45ea89251aaab905360 (patch) | |
tree | 5d3527560565ed0a9d392368b14c581db5707c79 /include | |
parent | 1b7e0403c6a72d18bebd4f2a6858b6c69c4bd428 (diff) | |
download | op-kernel-dev-8c10cbdb4af642d9a2efb45ea89251aaab905360.zip op-kernel-dev-8c10cbdb4af642d9a2efb45ea89251aaab905360.tar.gz |
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')
-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 b38d113..5aadf8a 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; |