diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-02-15 22:08:35 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2007-02-15 22:08:35 +0000 |
| commit | 10bcafe9abdb866e20e561bf567f15c0a06a0114 (patch) | |
| tree | d0649ac0ff4a69d709b0c801322ed78174e44d1c /sys/gnu/fs/ext2fs | |
| parent | 233fcaed71e100aab87e94b9f579d3c23422d4db (diff) | |
Notes
Diffstat (limited to 'sys/gnu/fs/ext2fs')
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vfsops.c | 22 | ||||
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vnops.c | 25 |
2 files changed, 25 insertions, 22 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index 4168f911797df..7abcb7e62d00a 100644 --- a/sys/gnu/fs/ext2fs/ext2_vfsops.c +++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c @@ -92,7 +92,6 @@ static vfs_statfs_t ext2_statfs; static vfs_sync_t ext2_sync; static vfs_vget_t ext2_vget; static vfs_fhtovp_t ext2_fhtovp; -static vfs_vptofh_t ext2_vptofh; static vfs_mount_t ext2_mount; MALLOC_DEFINE(M_EXT2NODE, "ext2_node", "EXT2 vnode private part"); @@ -106,7 +105,6 @@ static struct vfsops ext2fs_vfsops = { .vfs_sync = ext2_sync, .vfs_unmount = ext2_unmount, .vfs_vget = ext2_vget, - .vfs_vptofh = ext2_vptofh, }; VFS_SET(ext2fs_vfsops, ext2fs, 0); @@ -1099,26 +1097,6 @@ ext2_fhtovp(mp, fhp, vpp) } /* - * Vnode pointer to File handle - */ -/* ARGSUSED */ -static int -ext2_vptofh(vp, fhp) - struct vnode *vp; - struct fid *fhp; -{ - struct inode *ip; - struct ufid *ufhp; - - ip = VTOI(vp); - ufhp = (struct ufid *)fhp; - ufhp->ufid_len = sizeof(struct ufid); - ufhp->ufid_ino = ip->i_number; - ufhp->ufid_gen = ip->i_gen; - return (0); -} - -/* * Write a superblock and associated information back to disk. */ static int diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index 4ea62c6f6ba61..5ed7d117b2c86 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -107,6 +107,7 @@ static vop_setattr_t ext2_setattr; static vop_strategy_t ext2_strategy; static vop_symlink_t ext2_symlink; static vop_write_t ext2_write; +static vop_vptofh_t ext2_vptofh; static vop_close_t ext2fifo_close; static vop_kqfilter_t ext2fifo_kqfilter; static int filt_ext2read(struct knote *kn, long hint); @@ -147,6 +148,7 @@ struct vop_vector ext2_vnodeops = { .vop_strategy = ext2_strategy, .vop_symlink = ext2_symlink, .vop_write = ext2_write, + .vop_vptofh = ext2_vptofh, }; struct vop_vector ext2_fifoops = { @@ -162,6 +164,7 @@ struct vop_vector ext2_fifoops = { .vop_reclaim = ext2_reclaim, .vop_setattr = ext2_setattr, .vop_write = VOP_PANIC, + .vop_vptofh = ext2_vptofh, }; #include <gnu/fs/ext2fs/ext2_readwrite.c> @@ -1542,6 +1545,28 @@ ext2_advlock(ap) } /* + * Vnode pointer to File handle + */ +/* ARGSUSED */ +static int +ext2_vptofh(ap) + struct vop_vptofh_args /* { + struct vnode *a_vp; + struct fid *a_fhp; + } */ *ap; +{ + struct inode *ip; + struct ufid *ufhp; + + ip = VTOI(ap->a_vp); + ufhp = (struct ufid *)ap->a_fhp; + ufhp->ufid_len = sizeof(struct ufid); + ufhp->ufid_ino = ip->i_number; + ufhp->ufid_gen = ip->i_gen; + return (0); +} + +/* * Initialize the vnode associated with a new inode, handle aliased * vnodes. */ |
