From: Christoph Hellwig Date: Thu, 30 Oct 2008 05:55:34 +0000 (+1100) Subject: [XFS] add helpers for addressing entities inside a btree block X-Git-Tag: v2.6.29-rc1~552^2~81^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f1eaeac0efc968797f3ac955b85ba3f5d4f9c8;p=pandora-kernel.git [XFS] add helpers for addressing entities inside a btree block Add new helpers in xfs_btree.c to find the record, key and block pointer entries inside a btree block. To implement this genericly the ->get_maxrecs methods and two new xfs_btree_ops entries for the key and record sizes are used. Also add a big comment describing how the addressing inside a btree block works. Note that these helpers are unused until users are introduced in the next patches and this patch will thus cause some harmless compiler warnings. SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32189a Signed-off-by: Christoph Hellwig Signed-off-by: Lachlan McIlroy Signed-off-by: Bill O'Donnell Signed-off-by: David Chinner --- Reading git-diff-tree failed