projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15261b9
)
NFSv4.1: use BITS_PER_LONG macro in nfs4session.h
author
Geliang Tang
<geliangtang@gmail.com>
Mon, 7 Dec 2020 09:03:52 +0000
(17:03 +0800)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 14 Dec 2020 11:51:07 +0000
(06:51 -0500)
Use the existing BITS_PER_LONG macro instead of calculating the value.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4session.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4session.h
b/fs/nfs/nfs4session.h
index b996ee23f1baec77699e7e779a91d6c67299fb61..3de425f59b3a76edbddbe79b21aae04d9cfc9313 100644
(file)
--- a/
fs/nfs/nfs4session.h
+++ b/
fs/nfs/nfs4session.h
@@
-34,7
+34,7
@@
enum nfs4_slot_tbl_state {
NFS4_SLOT_TBL_DRAINING,
};
-#define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE,
8*sizeof(long)
)
+#define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE,
BITS_PER_LONG
)
struct nfs4_slot_table {
struct nfs4_session *session; /* Parent session */
struct nfs4_slot *slots; /* seqid per slot */