linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about hfs_cat_keycmp
@ 2014-12-09 22:14 Rasmus Villemoes
  2014-12-09 22:50 ` Vyacheslav Dubeyko
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus Villemoes @ 2014-12-09 22:14 UTC (permalink / raw)
  To: linux-fsdevel

[scripts/get_maintainer.pl -f only gave this list, so here goes:]

hfs_cat_keycmp() in fs/hfs/catalog.c contains

  retval = be32_to_cpu(key1->cat.ParID) - be32_to_cpu(key2->cat.ParID);

Is it guaranteed/documented somewhere that these CNIDs are always within
2^31-1 of each other (in practice probably meaning that they are both in
[0, 2^31-1])? I suppose the answer to the 'guaranteed' part is yes, as
otherwise the Btree wouldn't work well...

Rasmus

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-10 19:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 22:14 Question about hfs_cat_keycmp Rasmus Villemoes
2014-12-09 22:50 ` Vyacheslav Dubeyko
2014-12-10 16:32   ` [PATCH] fs: hfs: Fix comparison bug in hfs_cat_keycmp Rasmus Villemoes
2014-12-10 19:23     ` Vyacheslav Dubeyko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).