xfs
[Top] [All Lists]

TAKE 985583 - add helpers for addressing entities inside a btree block

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: TAKE 985583 - add helpers for addressing entities inside a btree block
From: lachlan@xxxxxxx (Lachlan McIlroy)
Date: Wed, 24 Sep 2008 17:58:28 +1000 (EST)
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.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Date:  Wed Sep 24 17:57:38 AEST 2008
Workarea:  redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-btree
Inspected by:  
dgc
billodo
lachlan
Author:  lachlan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:32189a
fs/xfs/xfs_ialloc_btree.c - 1.92 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_ialloc_btree.c.diff?r1=text&tr1=1.92&r2=text&tr2=1.91&f=h
fs/xfs/xfs_bmap_btree.c - 1.181 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap_btree.c.diff?r1=text&tr1=1.181&r2=text&tr2=1.180&f=h
fs/xfs/xfs_btree.c - 1.126 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_btree.c.diff?r1=text&tr1=1.126&r2=text&tr2=1.125&f=h
fs/xfs/xfs_btree.h - 1.79 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_btree.h.diff?r1=text&tr1=1.79&r2=text&tr2=1.78&f=h
fs/xfs/xfs_alloc_btree.c - 1.96 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_alloc_btree.c.diff?r1=text&tr1=1.96&r2=text&tr2=1.95&f=h
        - add helpers for addressing entities inside a btree block



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 985583 - add helpers for addressing entities inside a btree block, Lachlan McIlroy <=