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
This commit is contained in:
Kirk McKusick 2013-10-20 20:41:38 +00:00
parent ea6247173f
commit 8850120f48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256801
2 changed files with 6 additions and 6 deletions

View File

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

View File

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