Skip to contentSkip to conversation

bcache: fix calling ida_simple_remove()withincorrectminor

PATCH Coly Li 1 participant 1 message May 9, 2017 1 message not in the archive bcache (block layer cache)

lore
Share & tools
lore

Coly Li

author
#1 lore raw
In reply to a message not in the archive
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