From: Rasmus Villemoes Subject: Question about hfs_cat_keycmp Date: Tue, 09 Dec 2014 23:14:42 +0100 Message-ID: <874mt4bhd9.fsf@rasmusvillemoes.dk> Mime-Version: 1.0 Content-Type: text/plain To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-la0-f49.google.com ([209.85.215.49]:59328 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbaLIWOq (ORCPT ); Tue, 9 Dec 2014 17:14:46 -0500 Received: by mail-la0-f49.google.com with SMTP id hs14so1358698lab.22 for ; Tue, 09 Dec 2014 14:14:44 -0800 (PST) Received: from morgan.rasmusvillemoes.dk (ip-24-61.bnaa.dk. [84.238.24.61]) by mx.google.com with ESMTPSA id ao10sm179463lac.8.2014.12.09.14.14.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 09 Dec 2014 14:14:44 -0800 (PST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: [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