Since the vfs layer provides us with the inode we are going to remove,
pass it into xfs and avoid scanning the directory for the name.
Date: Thu Jun 1 12:02:00 PDT 2000
Workarea: eagdhcp-184-27.cray.com:/usr/src/lord/linux-xfs
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.3.99pre2-xfs
Modid: 2.3.99pre2-xfs:slinx:63177a
linux/fs/xfs/xfs_vnodeops.c - 1.454
http://oss.sgi.com/cgi-bin/cvsweb.cgi/linux-2.4-xfs/linux/fs/xfs/xfs_vnodeops.c.diff?r1=text&tr1=1.454&r2=text&tr2=1.453&f=h
- use the passed in vnode to locate the target inode if it is present
instead
of walking down the directory structure looking for it.
linux/fs/xfs/pseudo-inc/sys/vnode.h - 1.23
http://oss.sgi.com/cgi-bin/cvsweb.cgi/linux-2.4-xfs/linux/fs/xfs/pseudo-inc/sys/vnode.h.diff?r1=text&tr1=1.23&r2=text&tr2=1.22&f=h
- Add target vnode to parameters for VOP_REMOVE and VOP_RMDIR
linux/fs/xfs/linux/xfs_iops.c - 1.52
http://oss.sgi.com/cgi-bin/cvsweb.cgi/linux-2.4-xfs/linux/fs/xfs/linux/xfs_iops.c.diff?r1=text&tr1=1.52&r2=text&tr2=1.51&f=h
- Pass vnode for entry being removed into VOP for unlink and rmdir
|