summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2013-10-20 20:52:07 +0000
committermckusick <mckusick@FreeBSD.org>2013-10-20 20:52:07 +0000
commit25cf7a1f196140d51e47b87d683c79c163f627c2 (patch)
tree353caefdf1b623c68e1fc24a09ef9270b785ceae /sys/ufs
parentdc3e99b30a821620f294c8ab10d3812f4dc37479 (diff)
downloadFreeBSD-src-25cf7a1f196140d51e47b87d683c79c163f627c2.zip
FreeBSD-src-25cf7a1f196140d51e47b87d683c79c163f627c2.tar.gz
Second of several cleanups to soft dependency implementation.
Delete two unused functions in ffs_sofdep.c. No functional change. Tested by: Peter Holm and Scott Long Sponsored by: Netflix
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c34
-rw-r--r--sys/ufs/ufs/ufs_extern.h2
2 files changed, 0 insertions, 36 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 3127d5e..7ff6715 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -521,14 +521,6 @@ softdep_slowdown(vp)
panic("softdep_slowdown called");
}
-void
-softdep_releasefile(ip)
- struct inode *ip; /* inode with the zero effective link count */
-{
-
- panic("softdep_releasefile called");
-}
-
int
softdep_request_cleanup(fs, vp, cred, resource)
struct fs *fs;
@@ -4695,32 +4687,6 @@ softdep_revert_create(dp, ip)
}
/*
- * Called to release the journal structures created by a failed dotdot link
- * creation. Adjusts nlinkdelta for non-journaling softdep.
- */
-void
-softdep_revert_dotdot_link(dp, ip)
- struct inode *dp;
- struct inode *ip;
-{
- struct inodedep *inodedep;
- struct jaddref *jaddref;
- struct vnode *dvp;
-
- dvp = ITOV(dp);
- ACQUIRE_LOCK(&lk);
- inodedep = inodedep_lookup_ip(dp);
- if (DOINGSUJ(dvp)) {
- jaddref = (struct jaddref *)TAILQ_LAST(&inodedep->id_inoreflst,
- inoreflst);
- KASSERT(jaddref->ja_parent == ip->i_number,
- ("softdep_revert_dotdot_link: addref parent mismatch"));
- cancel_jaddref(jaddref, inodedep, &inodedep->id_inowait);
- }
- FREE_LOCK(&lk);
-}
-
-/*
* Called to release the journal structures created by a failed link
* addition. Adjusts nlinkdelta for non-journaling softdep.
*/
diff --git a/sys/ufs/ufs/ufs_extern.h b/sys/ufs/ufs/ufs_extern.h
index 31a2ba8..288eb62 100644
--- a/sys/ufs/ufs/ufs_extern.h
+++ b/sys/ufs/ufs/ufs_extern.h
@@ -98,7 +98,6 @@ void softdep_setup_remove(struct buf *,struct inode *, struct inode *, int);
void softdep_setup_directory_change(struct buf *, struct inode *,
struct inode *, ino_t, int);
void softdep_change_linkcnt(struct inode *);
-void softdep_releasefile(struct inode *);
int softdep_slowdown(struct vnode *);
void softdep_setup_create(struct inode *, struct inode *);
void softdep_setup_dotdot_link(struct inode *, struct inode *);
@@ -107,7 +106,6 @@ void softdep_setup_mkdir(struct inode *, struct inode *);
void softdep_setup_rmdir(struct inode *, struct inode *);
void softdep_setup_unlink(struct inode *, struct inode *);
void softdep_revert_create(struct inode *, struct inode *);
-void softdep_revert_dotdot_link(struct inode *, struct inode *);
void softdep_revert_link(struct inode *, struct inode *);
void softdep_revert_mkdir(struct inode *, struct inode *);
void softdep_revert_rmdir(struct inode *, struct inode *);
OpenPOWER on IntegriCloud