Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-17517 lov: fix large shift in lov_update_statfs()
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_request.c
diff --git
a/lustre/lov/lov_request.c
b/lustre/lov/lov_request.c
index
83cb50b
..
77dff64
100644
(file)
--- a/
lustre/lov/lov_request.c
+++ b/
lustre/lov/lov_request.c
@@
-197,7
+197,7
@@
lov_update_statfs(struct obd_statfs *osfs, struct obd_statfs *lov_sfs,
/* assume all block sizes are always powers of 2 */
/* get the bits difference */
tmp = osfs->os_bsize | lov_sfs->os_bsize;
/* assume all block sizes are always powers of 2 */
/* get the bits difference */
tmp = osfs->os_bsize | lov_sfs->os_bsize;
- for (shift = 0; shift <
= 64; ++shift
) {
+ for (shift = 0; shift <
32; shift++
) {
if (tmp & 1) {
if (quit)
break;
if (tmp & 1) {
if (quit)
break;