bcache: fix calling ida_simple_remove()withincorrectminor
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · On 2017/5/9 上午9:18, [email protected] wrote:
Hello Coly,
Your catch is nice:
> if you call
ida_simple_get()like this,>
> minor = ida_simple_get(&bcache_minor, 0, BCACHE_TO_IDA_MONIRS(MINORMASK
> + 1),
GFP_KERNEL);>
Quoted 9 lines
> The overflow should be removed.
But I think it is better to modified it as:
minor = ida_simple_get(&bcache_minor, 0,
BCACHE_TO_IDA_MONIRS(MINORMASK)+ 1,
GFP_KERNEL);
Sure, they are same, just use the way you want.
Quoted 3 lines
Though this issue is not introduced by this patch, I would like to fix it togother
Thank you!
Quoted 3 lines
in this patch, I will send a new patch later If you don't have any question any more.
Yes please, I don't have comment any more.
Signature · 1 line
Coly Li