Make static non-exported functions from soft updates.

This commit is contained in:
Kirk McKusick 2000-01-09 22:40:09 +00:00
parent e85919b9f8
commit 83aaf63ab2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55690
3 changed files with 24 additions and 17 deletions

View File

@ -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;
{

View File

@ -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 *));

View File

@ -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;
{