diff options
author | mckusick <mckusick@FreeBSD.org> | 2013-10-20 20:41:38 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2013-10-20 20:41:38 +0000 |
commit | 297f76c244d3294522191a95f6c99c128e5b75f5 (patch) | |
tree | 1ef2cf754352e04ef61bb9b56fd0798252b0d49e /sys/ufs | |
parent | 909eb57bd4467118a3b6965351fb74da22c8ecb7 (diff) | |
download | FreeBSD-src-297f76c244d3294522191a95f6c99c128e5b75f5.zip FreeBSD-src-297f76c244d3294522191a95f6c99c128e5b75f5.tar.gz |
First of several cleanups to soft dependency implementation.
Convert three functions exported from ffs_softdep.c to static
functions as they are not used outside of ffs_softdep.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_extern.h | 2 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index 918383d..a50a88a 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -152,9 +152,7 @@ void softdep_setup_sbupdate(struct ufsmount *, struct fs *, struct buf *); void softdep_fsync_mountdev(struct vnode *); int softdep_sync_metadata(struct vnode *); int softdep_sync_buf(struct vnode *, struct buf *, int); -int softdep_process_worklist(struct mount *, int); int softdep_fsync(struct vnode *); -int softdep_waitidle(struct mount *); int softdep_prealloc(struct vnode *, int); int softdep_journal_lookup(struct mount *, struct vnode **); void softdep_journal_freeblocks(struct inode *, struct ucred *, off_t, int); diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 9662ab3..3127d5e 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -812,6 +812,8 @@ struct jextent { * Internal function prototypes. */ static void softdep_error(char *, int); +static int softdep_process_worklist(struct mount *, int); +static int softdep_waitidle(struct mount *); static void drain_output(struct vnode *); static struct buf *getdirtybuf(struct buf *, struct rwlock *, int); static void clear_remove(void); @@ -926,7 +928,7 @@ static inline void setup_freeindir(struct freeblks *, struct inode *, int, static inline struct freeblks *newfreeblks(struct mount *, struct inode *); static void freeblks_free(struct ufsmount *, struct freeblks *, int); static void indir_trunc(struct freework *, ufs2_daddr_t, ufs_lbn_t); -ufs2_daddr_t blkcount(struct fs *, ufs2_daddr_t, off_t); +static ufs2_daddr_t blkcount(struct fs *, ufs2_daddr_t, off_t); static int trunc_check_buf(struct buf *, int *, ufs_lbn_t, int, int); static void trunc_dependencies(struct inode *, struct freeblks *, ufs_lbn_t, int, int); @@ -1563,7 +1565,7 @@ wait_worklist(wk, wmesg) * ordering ensures that no new <vfsid, inum, lbn> triples will be generated * until all the old ones have been purged from the dependency lists. */ -int +static int softdep_process_worklist(mp, full) struct mount *mp; int full; @@ -1909,7 +1911,7 @@ softdep_flushworklist(oldmnt, countp, td) return (error); } -int +static int softdep_waitidle(struct mount *mp) { struct ufsmount *ump; @@ -6225,7 +6227,7 @@ complete_trunc_indir(freework) * Calculate the number of blocks we are going to release where datablocks * is the current total and length is the new file size. */ -ufs2_daddr_t +static ufs2_daddr_t blkcount(fs, datablocks, length) struct fs *fs; ufs2_daddr_t datablocks; |