[dm-devel] [RFC PATCH] dm: Check for device sector overflow if CONFIG_LBDAF is not set
Milan Broz
gmazyland at gmail.com
Mon Nov 5 18:59:25 UTC 2018
On 05/11/2018 19:35, Mikulas Patocka wrote:
> But the condition "sizeof(cc->start) < sizeof(tmpll)" could be dropped,
> the compiler will optimize out "cc->start != tmpll" if the types have the
> same width.
Yes, the intention here is that in 64bit env. the whole if condition
is not compiled in. If it happens without "sizeof(cc->start) < sizeof(tmpll)",
then we can drop it.
So, does it make sense to add this to all dm targets? Or any better idea?
Milan
More information about the dm-devel
mailing list