Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f123480
)
b=19426
author
pravins
<pravins>
Wed, 20 May 2009 12:37:42 +0000
(12:37 +0000)
committer
pravins
<pravins>
Wed, 20 May 2009 12:37:42 +0000
(12:37 +0000)
i=adilger
add comment to fid_pack()
lustre/obdclass/lu_object.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/lu_object.c
b/lustre/obdclass/lu_object.c
index
59b43d7
..
6f8f62f
100644
(file)
--- a/
lustre/obdclass/lu_object.c
+++ b/
lustre/obdclass/lu_object.c
@@
-1689,6
+1689,11
@@
void fid_pack(struct lu_fid_pack *pack, const struct lu_fid *fid,
} else {
unsigned char *small_befider;
+ /* as lower 24 bits of FID_SEQ_START are zero, no need to
+ * subtract its value from seq */
+
+ CLASSERT((FID_SEQ_START & 0xffffff) == 0);
+
small_befider = (unsigned char *)befider;
small_befider[0] = seq >> 16;