diff options
author | mckusick <mckusick@FreeBSD.org> | 2000-01-09 22:40:09 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2000-01-09 22:40:09 +0000 |
commit | 722b90c9d5e674ff5afef93efc94439f54bbc419 (patch) | |
tree | 7b2745a9a1758cc61e4e35bb91d0b06fc65c2d30 /sys/ufs | |
parent | d706677e985477ca482f90a214825e6f8f049e04 (diff) | |
download | FreeBSD-src-722b90c9d5e674ff5afef93efc94439f54bbc419.zip FreeBSD-src-722b90c9d5e674ff5afef93efc94439f54bbc419.tar.gz |
Make static non-exported functions from soft updates.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_extern.h | 5 | ||||
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 18 |
2 files changed, 12 insertions, 11 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index 58d2ef9..02848a3 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -108,16 +108,13 @@ extern vop_t **ffs_fifoop_p; * Soft update function prototypes. */ void softdep_initialize __P((void)); -int softdep_process_worklist __P((struct mount *)); int softdep_mount __P((struct vnode *, struct mount *, struct fs *, struct ucred *)); int softdep_flushfiles __P((struct mount *, int, struct proc *)); void softdep_update_inodeblock __P((struct inode *, struct buf *, int)); void softdep_load_inodeblock __P((struct inode *)); -int softdep_fsync __P((struct vnode *)); void softdep_freefile __P((struct vnode *, ino_t, int)); void softdep_setup_freeblocks __P((struct inode *, off_t)); -void softdep_deallocate_dependencies __P((struct buf *)); void softdep_setup_inomapdep __P((struct buf *, struct inode *, ino_t)); void softdep_setup_blkmapdep __P((struct buf *, struct fs *, ufs_daddr_t)); void softdep_setup_allocdirect __P((struct inode *, ufs_lbn_t, ufs_daddr_t, @@ -126,8 +123,6 @@ void softdep_setup_allocindir_meta __P((struct buf *, struct inode *, struct buf *, int, ufs_daddr_t)); void softdep_setup_allocindir_page __P((struct inode *, ufs_lbn_t, struct buf *, int, ufs_daddr_t, ufs_daddr_t, struct buf *)); -void softdep_disk_io_initiation __P((struct buf *)); -void softdep_disk_write_complete __P((struct buf *)); void softdep_fsync_mountdev __P((struct vnode *)); int softdep_sync_metadata __P((struct vop_fsync_args *)); diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 20cb2dc..396cd48 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -52,7 +52,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * from: @(#)ffs_softdep.c 9.40 (McKusick) 6/15/99 + * from: @(#)ffs_softdep.c 9.43 (McKusick) 1/9/00 * $FreeBSD$ */ @@ -207,6 +207,12 @@ static void add_to_worklist __P((struct worklist *)); /* * Exported softdep operations. */ +static void softdep_disk_io_initiation __P((struct buf *)); +static void softdep_disk_write_complete __P((struct buf *)); +static void softdep_deallocate_dependencies __P((struct buf *)); +static int softdep_fsync __P((struct vnode *)); +static int softdep_process_worklist __P((struct mount *)); + struct bio_ops bioops = { softdep_disk_io_initiation, /* io_start */ softdep_disk_write_complete, /* io_complete */ @@ -524,7 +530,7 @@ add_to_worklist(wk) * 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(matchmnt) struct mount *matchmnt; { @@ -2649,7 +2655,7 @@ handle_workitem_freefile(freefile) * The buffer must be locked, thus, no I/O completion operations can occur * while we are manipulating its associated dependencies. */ -void +static void softdep_disk_io_initiation(bp) struct buf *bp; /* structure describing disk write to occur */ { @@ -2909,7 +2915,7 @@ initiate_write_inodeblock(inodedep, bp) * procedure, before the block is made available to other * processes or other routines are called. */ -void +static void softdep_disk_write_complete(bp) struct buf *bp; /* describes the completed disk write */ { @@ -3577,7 +3583,7 @@ merge_inode_lists(inodedep) * If we are doing an fsync, then we must ensure that any directory * entries for the inode have been written after the inode gets to disk. */ -int +static int softdep_fsync(vp) struct vnode *vp; /* the "in_core" copy of the inode */ { @@ -4459,7 +4465,7 @@ drain_output(vp, islocked) * contains dependencies. This should only happen if an I/O error has * occurred. The routine is called with the buffer locked. */ -void +static void softdep_deallocate_dependencies(bp) struct buf *bp; { |