Skip to contentSkip to conversation

fs/ocfs2/cluster/heartbeat.c: misplaced parentheses in o2hb_setup_one_bio()?

Ocfs2-devel Roel Kluin 1 participant 2 messages Mar 9, 2008 OCFS2

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

from fs/ocfs2/cluster/heartbeat.c:265:

vec_start = (cs << bits) % PAGE_CACHE_SIZE;

shouldn't this be

vec_start = cs << (bits % PAGE_CACHE_SIZE);

?

author
#1 lore raw
Quoted 9 lines · Roel Kluin

from fs/ocfs2/cluster/heartbeat.c:265:

vec_start = (cs << bits) % PAGE_CACHE_SIZE;

shouldn't this be

vec_start = cs << (bits % PAGE_CACHE_SIZE);

?

Nevermind, it is probably right. Sorry for the noise.