TAKE 985583 - split up xfs_btree_init_cursor
split up xfs_btree_init_cursor
xfs_btree_init_cursor contains close to little shared code for the different btrees and will get even more non-common code in the future. Split it up into one routine per btree type.
Because xfs_btree_dup_cursor needs to call the init routine for a generic btree cursor add a new btree operation vector that contains a dup_cursor method that initializes a new cursor based on an existing one.
The btree operations vector is based on an idea and code from Dave Chinner and will grow more entries later during this series.
Date: Wed Sep 24 17:14:52 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:32176afs/xfs/xfs_ialloc.c - 1.201 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_ialloc.c.diff?r1=text&tr1=1.201&r2=text&tr2=1.200&f=hfs/xfs/xfs_itable.c - 1.171 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_itable.c.diff?r1=text&tr1=1.171&r2=text&tr2=1.170&f=hfs/xfs/xfs_ialloc_btree.h - 1.34 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_ialloc_btree.h.diff?r1=text&tr1=1.34&r2=text&tr2=1.33&f=hfs/xfs/xfs_ialloc_btree.c - 1.89 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_ialloc_btree.c.diff?r1=text&tr1=1.89&r2=text&tr2=1.88&f=hfs/xfs/xfs_bmap_btree.h - 1.81 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap_btree.h.diff?r1=text&tr1=1.81&r2=text&tr2=1.80&f=hfs/xfs/xfs_bmap_btree.c - 1.175 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap_btree.c.diff?r1=text&tr1=1.175&r2=text&tr2=1.174&f=hfs/xfs/xfs_btree.c - 1.120 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_btree.c.diff?r1=text&tr1=1.120&r2=text&tr2=1.119&f=hfs/xfs/xfs_btree.h - 1.70 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_btree.h.diff?r1=text&tr1=1.70&r2=text&tr2=1.69&f=hfs/xfs/xfs_alloc.c - 1.195 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_alloc.c.diff?r1=text&tr1=1.195&r2=text&tr2=1.194&f=hfs/xfs/xfs_bmap.c - 1.402 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.c.diff?r1=text&tr1=1.402&r2=text&tr2=1.401&f=hfs/xfs/xfs_alloc_btree.h - 1.31 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_alloc_btree.h.diff?r1=text&tr1=1.31&r2=text&tr2=1.30&f=hfs/xfs/xfs_alloc_btree.c - 1.93 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_alloc_btree.c.diff?r1=text&tr1=1.93&r2=text&tr2=1.92&f=h
- split up xfs_btree_init_cursor