vfs: retire the now unused vnlru_free routine

This commit is contained in:
Mateusz Guzik 2021-05-22 18:42:30 +00:00
parent c235059bb7
commit cf74b2be53
2 changed files with 0 additions and 28 deletions

View File

@ -1349,33 +1349,6 @@ vnlru_free_vfsops(int count, struct vfsops *mnt_op, struct vnode *mvp)
mtx_unlock(&vnode_list_mtx);
}
/*
* Temporary binary compat, don't use. Call vnlru_free_vfsops instead.
*/
void
vnlru_free(int count, struct vfsops *mnt_op)
{
struct vnode *mvp;
if (count == 0)
return;
mtx_lock(&vnode_list_mtx);
mvp = vnode_list_free_marker;
if (vnlru_free_impl(count, mnt_op, mvp) == 0) {
/*
* It is possible the marker was moved over eligible vnodes by
* callers which filtered by different ops. If so, start from
* scratch.
*/
if (vnlru_read_freevnodes() > 0) {
TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist);
TAILQ_INSERT_HEAD(&vnode_list, mvp, v_vnodelist);
}
vnlru_free_impl(count, mnt_op, mvp);
}
mtx_unlock(&vnode_list_mtx);
}
struct vnode *
vnlru_alloc_marker(void)
{

View File

@ -828,7 +828,6 @@ int vfs_write_suspend(struct mount *mp, int flags);
int vfs_write_suspend_umnt(struct mount *mp);
struct vnode *vnlru_alloc_marker(void);
void vnlru_free_marker(struct vnode *);
void vnlru_free(int, struct vfsops *);
void vnlru_free_vfsops(int, struct vfsops *, struct vnode *);
int vop_stdbmap(struct vop_bmap_args *);
int vop_stdfdatasync_buf(struct vop_fdatasync_args *);