Thread (7 messages) 7 messages, 3 authors, 2014-02-18

Re: New bcache compiler warning (was: Re: bcache: Minor fixes from kbuild robot)

From: Kent Overstreet <hidden>
Date: 2014-02-17 22:46:52
Also in: lkml

On Mon, Feb 17, 2014 at 02:44:47PM -0800, Randy Dunlap wrote:
Could that cause a truncation?  unsigned means unsigned int.
Can unsigned int be smaller (fewer bits) than the k pointer?
If so, is that OK or a problem?
It's just truncating the offset of the pointer within the struct bset, which is
part of a btree node - the thing that's being cast is restricted to be no bigger
than a btree node, which is at most a few mb.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help