Remove duplicated empty lines from kern/*.c

No functional changes.
This commit is contained in:
Mateusz Guzik 2020-01-30 20:05:05 +00:00
parent 2823710f05
commit 3ff65f71cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357312
62 changed files with 0 additions and 111 deletions

View file

@ -609,7 +609,6 @@ imgact_binmisc_exec(struct image_params *imgp)
fname = sbuf_data(sname);
}
/*
* We need to "push" the interpreter in the arg[] list. To do this,
* we first shift all the other values in the `begin_argv' area to
@ -707,7 +706,6 @@ imgact_binmisc_exec(struct image_params *imgp)
if (!error)
imgp->interpreter_name = imgp->args->begin_argv;
done:
if (sname)
sbuf_delete(sname);

View file

@ -630,7 +630,6 @@ __elfN(load_section)(struct image_params *imgp, vm_ooffset_t offset,
return (0);
}
/*
* We have to get the remaining bit of the file into the first part
* of the oversized map segment. This is normally because the .data

View file

@ -115,7 +115,6 @@ linux_alloc_current_noop(struct thread *td __unused, int flags __unused)
}
int (*lkpi_alloc_current)(struct thread *, int) = linux_alloc_current_noop;
#ifndef BOOTHOWTO
#define BOOTHOWTO 0
#endif

View file

@ -120,7 +120,6 @@ static void alq_shutdown(struct alq *);
static void alq_destroy(struct alq *);
static int alq_doio(struct alq *);
/*
* Add a new queue to the global list. Fail if we're shutting down.
*/
@ -422,7 +421,6 @@ static struct kproc_desc ald_kp = {
SYSINIT(aldthread, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &ald_kp);
SYSINIT(ald, SI_SUB_LOCK, SI_ORDER_ANY, ald_startup, NULL);
/* User visible queue functions */
/*
@ -502,7 +500,6 @@ alq_open(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
return (ret);
}
/*
* Copy a new entry into the queue. If the operation would block either
* wait or return an error depending on the value of waitok.

View file

@ -950,7 +950,6 @@ dev_dependsl(struct cdev *pdev, struct cdev *cdev)
LIST_INSERT_HEAD(&pdev->si_children, cdev, si_siblings);
}
void
dev_depends(struct cdev *pdev, struct cdev *cdev)
{
@ -1325,7 +1324,6 @@ clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up,
KASSERT(csw->d_flags & D_NEEDMINOR,
("clone_create() on cdevsw without minor numbers"));
/*
* Search the list for a lot of things in one go:
* A preexisting match is returned immediately.

View file

@ -686,7 +686,6 @@ exit1(struct thread *td, int rval, int signo)
thread_exit();
}
#ifndef _SYS_SYSPROTO_H_
struct abort2_args {
char *why;
@ -763,7 +762,6 @@ sys_abort2(struct thread *td, struct abort2_args *uap)
return (0);
}
#ifdef COMPAT_43
/*
* The dirty work is handled by kern_wait().

View file

@ -508,7 +508,6 @@ hhook_vnet_uninit(const void *unused __unused)
HHHLIST_UNLOCK();
}
/*
* When a vnet is created and being initialised, init the V_hhook_vhead_list.
*/

View file

@ -436,7 +436,6 @@ kern_jail(struct thread *td, struct jail *j)
return (error);
}
/*
* struct jail_set_args {
* struct iovec *iovp;
@ -1896,7 +1895,6 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
return (error);
}
/*
* struct jail_get_args {
* struct iovec *iovp;
@ -2208,7 +2206,6 @@ kern_jail_get(struct thread *td, struct uio *optuio, int flags)
return (error);
}
/*
* struct jail_remove_args {
* int jid;
@ -2308,7 +2305,6 @@ prison_remove_one(struct prison *pr)
prison_deref(pr, deuref | PD_DEREF);
}
/*
* struct jail_attach_args {
* int jid;
@ -2425,7 +2421,6 @@ do_jail_attach(struct thread *td, struct prison *pr)
return (error);
}
/*
* Returns a locked prison instance, or NULL on failure.
*/
@ -3427,7 +3422,6 @@ prison_path(struct prison *pr1, struct prison *pr2)
return (path2);
}
/*
* Jail-related sysctls.
*/

View file

@ -321,7 +321,6 @@ kcov_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
struct kcov_info *info;
int error;
if ((error = devfs_get_cdevpriv((void **)&info)) != 0)
return (error);

View file

@ -230,7 +230,6 @@ kproc_suspend_check(struct proc *p)
PROC_UNLOCK(p);
}
/*
* Start a kernel thread.
*

View file

@ -133,7 +133,6 @@ retry: \
(a) = next_file_id; \
} while(0)
/* XXX wrong name; we're looking at version provision tags here, not modules */
typedef TAILQ_HEAD(, modlist) modlisthead_t;
struct modlist {

View file

@ -886,7 +886,6 @@ lf_free_edge(struct lockf_edge *e)
free(e, M_LOCKF);
}
/*
* Ensure that the lock's owner has a corresponding vertex in the
* owner graph.

View file

@ -518,7 +518,6 @@ sysctl_build_id(SYSCTL_HANDLER_ARGS)
return (ENOENT);
}
hashlen = sectionlen - BUILD_ID_HEADER_LEN;
for (int i = 0; i < hashlen; i++) {
uint8_t c = __build_id_start[i+BUILD_ID_HEADER_LEN];

View file

@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h>
#include <sys/systm.h>
static MALLOC_DEFINE(M_MTXPOOL, "mtx_pool", "mutex pool");
/* Pool sizes must be a power of two */

View file

@ -183,7 +183,6 @@ pmc_cpu_is_primary(int cpu)
#endif
}
/*
* Return the maximum CPU number supported by the system. The return
* value is used for scaling internal data structures and for runtime

View file

@ -247,7 +247,6 @@ static uint32_t idlepoll_sleeping; /* idlepoll is sleeping */
SYSCTL_UINT(_kern_polling, OID_AUTO, idlepoll_sleeping, CTLFLAG_RD,
&idlepoll_sleeping, 0, "idlepoll is sleeping");
#define POLL_LIST_LEN 128
struct pollrec {
poll_handler_t *handler;
@ -273,7 +272,6 @@ init_device_poll(void)
}
SYSINIT(device_poll, SI_SUB_SOFTINTR, SI_ORDER_MIDDLE, init_device_poll, NULL);
/*
* Hook from hardclock. Tries to schedule a netisr, but keeps track
* of lost ticks due to the previous handler taking too long.

View file

@ -66,7 +66,6 @@ __FBSDID("$FreeBSD$");
#include <vm/pmap.h>
#include <vm/vm_map.h>
static MALLOC_DEFINE(M_PLIMIT, "plimit", "plimit structures");
static MALLOC_DEFINE(M_UIDINFO, "uidinfo", "uidinfo structures");
#define UIHASH(uid) (&uihashtbl[(uid) & uihash])

View file

@ -865,7 +865,6 @@ freebsd4_sigaction(struct thread *td, struct freebsd4_sigaction_args *uap)
struct sigaction *actp, *oactp;
int error;
actp = (uap->act != NULL) ? &act : NULL;
oactp = (uap->oact != NULL) ? &oact : NULL;
if (actp) {
@ -1964,7 +1963,6 @@ pgsignal(struct pgrp *pgrp, int sig, int checkctty, ksiginfo_t *ksi)
}
}
/*
* Recalculate the signal mask and reset the signal disposition after
* usermode frame for delivery is formed. Should be called after
@ -1987,7 +1985,6 @@ postsig_done(int sig, struct thread *td, struct sigacts *ps)
sigdflt(ps, sig);
}
/*
* Send a signal caused by a trap to the current thread. If it will be
* caught immediately, deliver it with correct code. Otherwise, post it

View file

@ -26,7 +26,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

View file

@ -737,7 +737,6 @@ sysctl_remove_name(struct sysctl_oid *parent, const char *name,
return (error);
}
static int
sysctl_remove_oid_locked(struct sysctl_oid *oidp, int del, int recurse)
{
@ -1293,7 +1292,6 @@ sysctl_sysctl_oidfmt(SYSCTL_HANDLER_ARGS)
return (error);
}
static SYSCTL_NODE(_sysctl, CTL_SYSCTL_OIDFMT, oidfmt, CTLFLAG_RD |
CTLFLAG_MPSAFE | CTLFLAG_CAPRD, sysctl_sysctl_oidfmt, "");
@ -1546,7 +1544,6 @@ sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS)
return (0);
}
/*
* Handle a long, signed or unsigned.
* Two cases:

View file

@ -1540,7 +1540,6 @@ SYSCTL_PROC(_kern_timecounter, OID_AUTO, hardware, CTLTYPE_STRING | CTLFLAG_RW,
0, 0, sysctl_kern_timecounter_hardware, "A",
"Timecounter hardware selected");
/* Report the available timecounter hardware. */
static int
sysctl_kern_timecounter_choice(SYSCTL_HANDLER_ARGS)

View file

@ -118,7 +118,6 @@ int itimespecfix(struct timespec *ts);
SYSINIT(posix_timer, SI_SUB_P1003_1B, SI_ORDER_FIRST+4, itimer_start, NULL);
static int
settime(struct thread *td, struct timeval *tv)
{

View file

@ -26,7 +26,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* The micro UBSan implementation for the userland (uUBSan) and kernel (kUBSan).
* The uBSSan versions is suitable for inclusion into libc or used standalone

View file

@ -715,7 +715,6 @@ umtxq_signal_queue(struct umtx_key *key, int n_wake, int q)
return (ret);
}
/*
* Wake up specified thread.
*/
@ -1578,7 +1577,6 @@ umtx_pi_setowner(struct umtx_pi *pi, struct thread *owner)
TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
}
/*
* Disown a PI mutex, and remove it from the owned list.
*/

View file

@ -1314,7 +1314,6 @@ elf_relocaddr(linker_file_t lf, Elf_Addr x)
return (x);
}
static void
link_elf_unload_file(linker_file_t file)
{

View file

@ -87,7 +87,6 @@ typedef struct {
int sec;
} Elf_relaent;
typedef struct elf_file {
struct linker_file lf; /* Common fields */
@ -1270,7 +1269,6 @@ relocate_file(elf_file_t ef)
Elf_Size symidx;
Elf_Addr base;
/* Perform relocations without addend if there are any: */
for (i = 0; i < ef->nreltab; i++) {
rel = ef->reltab[i].rel;

View file

@ -828,7 +828,6 @@ static void
sched_priority(struct thread *td, u_char prio)
{
KTR_POINT3(KTR_SCHED, "thread", sched_tdname(td), "priority change",
"prio:%d", td->td_priority, "new prio:%d", prio, KTR_ATTR_LINKED,
sched_tdname(curthread));
@ -1298,7 +1297,6 @@ sched_add(struct thread *td, int flags)
SDT_PROBE4(sched, , , enqueue, td, td->td_proc, NULL,
flags & SRQ_PREEMPTED);
/*
* Now that the thread is moving to the run-queue, set the lock
* to the scheduler's lock.

View file

@ -1506,7 +1506,6 @@ sched_initticks(void *dummy)
sched_idlespinthresh = 2 * max(10000, 6 * hz) / realstathz;
}
/*
* This is the core of the interactivity algorithm. Determines a score based
* on past behavior. It is the ratio of sleep time to run time scaled to

View file

@ -652,7 +652,6 @@ acl_posix1e_newfilemode(mode_t cmode, struct acl *dacl)
return (mode);
}
static int
acl_posix1e_modload(module_t mod, int what, void *arg)
{

View file

@ -192,7 +192,6 @@ bitrange(int n, int count)
((u_daddr_t)-1 >> (BLIST_BMAP_RADIX - (n + count))));
}
/*
* Find the first bit set in a u_daddr_t.
*/

View file

@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@ -37,7 +36,6 @@ __FBSDID("$FreeBSD$");
#include <sys/ktr.h>
#include <sys/buf_ring.h>
struct buf_ring *
buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock)
{

View file

@ -3591,7 +3591,6 @@ resource_list_release_active(struct resource_list *rl, device_t bus,
return (retval);
}
/**
* @brief Fully release a reserved resource
*
@ -3907,7 +3906,6 @@ bus_generic_resume(device_t dev)
return (0);
}
/**
* @brief Helper function for implementing BUS_RESET_POST
*

View file

@ -84,7 +84,6 @@ SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock, CTLFLAG_RW,
* Derived from NetBSD arch/hp300/hp300/clock.c
*/
#define FEBRUARY 2
#define days_in_year(y) (leapyear(y) ? 366 : 365)
#define days_in_month(y, m) \

View file

@ -493,7 +493,6 @@ kcsan_copyout(const void *kaddr, void *uaddr, size_t len)
atomic_subtract_##name(ptr, val); \
}
#define CSAN_ATOMIC_FUNC_SUBTRACT(name, type) \
_CSAN_ATOMIC_FUNC_SUBTRACT(name, type) \
_CSAN_ATOMIC_FUNC_SUBTRACT(acq_##name, type) \
@ -535,7 +534,6 @@ kcsan_copyout(const void *kaddr, void *uaddr, size_t len)
return (atomic_testandset_##name(ptr, val)); \
}
CSAN_ATOMIC_FUNC_ADD(8, uint8_t)
CSAN_ATOMIC_FUNC_CLEAR(8, uint8_t)
CSAN_ATOMIC_FUNC_CMPSET(8, uint8_t)
@ -660,7 +658,6 @@ CSAN_ATOMIC_FUNC_TESTANDSET(ptr, uintptr_t)
atomic_thread_fence_##name(); \
}
CSAN_ATOMIC_FUNC_THREAD_FENCE(acq)
CSAN_ATOMIC_FUNC_THREAD_FENCE(acq_rel)
CSAN_ATOMIC_FUNC_THREAD_FENCE(rel)

View file

@ -135,7 +135,6 @@ static const struct {
{ NOV + 3 * YEAR + 1, ENC(3, 12) }
};
void
timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp,
uint16_t *dtp, uint8_t *dhp)

View file

@ -133,7 +133,6 @@ setup_time_filter_small(struct time_filter_small *tf, int fil_type, uint32_t tim
return(0);
}
static void
check_update_times(struct time_filter *tf, uint64_t value, uint32_t now)
{
@ -204,8 +203,6 @@ check_update_times_small(struct time_filter_small *tf, uint32_t value, uint32_t
}
}
void
filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now)
{
@ -294,7 +291,6 @@ forward_filter_clock(struct time_filter *tf, uint32_t ticks_forward)
}
}
void
forward_filter_clock_small(struct time_filter_small *tf, uint32_t ticks_forward)
{
@ -309,7 +305,6 @@ forward_filter_clock_small(struct time_filter_small *tf, uint32_t ticks_forward)
}
}
void
tick_filter_clock(struct time_filter *tf, uint32_t now)
{
@ -453,7 +448,6 @@ apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now)
return (tf->entries[0].value);
}
uint32_t
apply_filter_max_small(struct time_filter_small *tf,
uint32_t value, uint32_t now)

View file

@ -156,7 +156,6 @@ _gtaskqueue_create(const char *name, int mflags,
return (queue);
}
/*
* Signal a taskqueue thread to terminate.
*/
@ -570,7 +569,6 @@ gtaskqueue_thread_enqueue(void *context)
wakeup_any(tq);
}
static struct gtaskqueue *
gtaskqueue_create_fast(const char *name, int mflags,
taskqueue_enqueue_fn enqueue, void *context)
@ -579,7 +577,6 @@ gtaskqueue_create_fast(const char *name, int mflags,
MTX_SPIN, "fast_taskqueue");
}
struct taskqgroup_cpu {
LIST_HEAD(, grouptask) tgc_tasks;
struct gtaskqueue *tgc_taskq;

View file

@ -135,7 +135,6 @@ res_find(char **hintp_cookie, int *line, int *startln,
char *hintp, *p;
bool dyn_used = false;
/*
* We are expecting that the caller will pass us a hintp_cookie that
* they are tracking. Upon entry, if *hintp_cookie is *not* set, this
@ -449,7 +448,6 @@ resource_find_match(int *anchor, const char **name, int *unit,
return ret;
}
/*
* err = resource_find_dev(&anchor, name, &unit, res, value);
* Iterate through a list of devices, returning their unit numbers.

View file

@ -1262,7 +1262,6 @@ void intr_free_intr_map_data(struct intr_map_data *data)
free(data, M_INTRNG);
}
/*
* Register a MSI/MSI-X interrupt controller
*/
@ -1376,7 +1375,6 @@ intr_alloc_msix(device_t pci, device_t child, intptr_t xref, int *irq)
("%s: Found a non-MSI controller: %s", __func__,
device_get_name(pic->pic_dev)));
err = MSI_ALLOC_MSIX(pic->pic_dev, child, &pdev, &isrc);
if (err != 0)
return (err);
@ -1445,7 +1443,6 @@ intr_map_msi(device_t pci, device_t child, intptr_t xref, int irq,
return (err);
}
void dosoftints(void);
void
dosoftints(void)
@ -1595,7 +1592,6 @@ intr_map_copy_map_data(u_int res_id, device_t *map_dev, intptr_t *map_xref,
mtx_unlock(&irq_map_lock);
}
/*
* Allocate and fill new entry in irq_map table.
*/

View file

@ -258,7 +258,6 @@ kdb_sysctl_stack_overflow(SYSCTL_HANDLER_ARGS)
return (0);
}
void
kdb_panic(const char *msg)
{

View file

@ -302,7 +302,6 @@ void
sbuf_set_flags(struct sbuf *s, int flags)
{
s->s_flags |= (flags & SBUF_USRFLAGMSK);
}

View file

@ -92,7 +92,6 @@ __FBSDID("$FreeBSD$");
#include <ddb/ddb.h>
#endif
/*
* Constants for the hash table of sleep queue chains.
* SC_TABLESIZE must be a power of two for SC_MASK to work properly.

View file

@ -803,7 +803,6 @@ smp_topo_2level(int l2share, int l2count, int l1share, int l1count,
return (top);
}
struct cpu_group *
smp_topo_find(struct cpu_group *top, int cpu)
{
@ -1006,7 +1005,6 @@ sysctl_kern_smp_active(SYSCTL_HANDLER_ARGS)
return (error);
}
#ifdef SMP
void
topo_init_node(struct topo_node *node)

View file

@ -1733,7 +1733,6 @@ stats_voistatdata_tdgst_tostr(enum vsd_dtype voi_dtype __unused,
sizeof(qstr));
sbuf_cat(buf, qstr);
switch (fmt) {
case SB_STRFMT_FREEFORM:
fmtstr = is32bit ? ",cnt=%u}" : ",cnt=%ju}";

View file

@ -143,7 +143,6 @@ _Malloc(size_t foo, int line)
struct unrhdr;
struct mtx {
int state;
} unitmtx;
@ -225,7 +224,6 @@ ub_full(struct unrb *ub, int len)
return (first_clear == -1);
}
#if defined(DIAGNOSTIC) || !defined(_KERNEL)
/*
* Consistency check function.
@ -276,7 +274,6 @@ check_unrhdr(struct unrhdr *uh __unused, int line __unused)
#endif
/*
* Userland memory management. Just use calloc and keep track of how
* many elements we have allocated for check_unrhdr().
@ -1045,7 +1042,6 @@ main(int argc, char **argv)
exit(2);
}
}
setbuf(stdout, NULL);

View file

@ -201,7 +201,6 @@ static uma_zone_t vmem_zone;
#define VMEM_CONDVAR_WAIT(vm) cv_wait(&vm->vm_cv, &vm->vm_lock)
#define VMEM_CONDVAR_BROADCAST(vm) cv_broadcast(&vm->vm_cv)
#define VMEM_LOCK(vm) mtx_lock(&vm->vm_lock)
#define VMEM_TRYLOCK(vm) mtx_trylock(&vm->vm_lock)
#define VMEM_UNLOCK(vm) mtx_unlock(&vm->vm_lock)

View file

@ -1915,7 +1915,6 @@ depart(struct witness *w)
witness_increment_graph_generation();
}
static void
adopt(struct witness *parent, struct witness *child)
{
@ -2893,7 +2892,6 @@ witness_hash_djb2(const uint8_t *key, uint32_t size)
return (hash);
}
/*
* Initializes the two witness hash tables. Called exactly once from
* witness_initialize().
@ -2966,7 +2964,6 @@ witness_hash_put(struct witness *w)
w_hash.wh_count++;
}
static struct witness_lock_order_data *
witness_lock_order_get(struct witness *parent, struct witness *child)
{

View file

@ -1525,7 +1525,6 @@ pollrescan(struct thread *td)
return (0);
}
static int
pollout(struct thread *td, struct pollfd *fds, struct pollfd *ufds, u_int nfd)
{

View file

@ -1606,7 +1606,6 @@ pipeclose(struct pipe *cpipe)
pipelock(cpipe, 0);
}
/*
* Disconnect from peer, if any.
*/

View file

@ -880,7 +880,6 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
}
}
/* OK */
break;

View file

@ -99,7 +99,6 @@ static int msg_prison_get(void *, void *);
static int msg_prison_remove(void *, void *);
static void msg_prison_cleanup(struct prison *);
#ifdef MSG_DEBUG
#define DPRINTF(a) printf a
#else
@ -352,7 +351,6 @@ msgunload()
return (0);
}
static int
sysvmsg_modload(struct module *module, int cmd, void *arg)
{

View file

@ -609,7 +609,6 @@ kern_shmctl(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz)
return (error);
}
#ifndef _SYS_SYSPROTO_H_
struct shmctl_args {
int shmid;
@ -658,7 +657,6 @@ sys_shmctl(struct thread *td, struct shmctl_args *uap)
return (error);
}
static int
shmget_existing(struct thread *td, struct shmget_args *uap, int mode,
int segnum)

View file

@ -2113,7 +2113,6 @@ mbprof_clr_handler(SYSCTL_HANDLER_ARGS)
return (error);
}
SYSCTL_PROC(_kern_ipc, OID_AUTO, mbufprofile, CTLTYPE_STRING|CTLFLAG_RD,
NULL, 0, mbprof_handler, "A", "mbuf profiling statistics");

View file

@ -316,7 +316,6 @@ static int unp_externalize_fp(struct file *);
static struct mbuf *unp_addsockcred(struct thread *, struct mbuf *);
static void unp_process_defers(void * __unused, int);
static void
unp_pcb_hold(struct unpcb *unp)
{
@ -385,7 +384,6 @@ unp_pcb_owned_lock2_slowpath(struct unpcb *unp, struct unpcb **unp2p,
unp_pcb_owned_lock2_slowpath((unp), &(unp2), &freed); \
} while (0)
/*
* Definitions of protocols supported in the LOCAL domain.
*/
@ -705,7 +703,6 @@ uipc_close(struct socket *so)
unp = sotounpcb(so);
KASSERT(unp != NULL, ("uipc_close: unp == NULL"));
vplock = NULL;
if ((vp = unp->unp_vnode) != NULL) {
vplock = mtx_pool_find(mtxpool_sleep, vp);
@ -1026,7 +1023,6 @@ connect_internal(struct socket *so, struct sockaddr *nam, struct thread *td)
return (error);
}
static int
uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
struct mbuf *control, struct thread *td)

View file

@ -67,7 +67,6 @@ CTASSERT(ACL_MAX_ENTRIES >= OLDACL_MAX_ENTRIES);
MALLOC_DEFINE(M_ACL, "acl", "Access Control Lists");
static int kern___acl_aclcheck_path(struct thread *td, const char *path,
acl_type_t type, struct acl *aclp, int follow);
static int kern___acl_delete_path(struct thread *td, const char *path,

View file

@ -779,7 +779,6 @@ bufspace_wait(struct bufdomain *bd, struct vnode *vp, int gbflags,
BD_UNLOCK(bd);
}
/*
* bufspace_daemon:
*
@ -942,7 +941,6 @@ waitrunningbufspace(void)
mtx_unlock(&rbreqlock);
}
/*
* vfs_buf_test_cache:
*

View file

@ -802,7 +802,6 @@ cluster_write(struct vnode *vp, struct buf *bp, u_quad_t filesize, int seqcount,
vp->v_lasta = bp->b_blkno;
}
/*
* This is an awful lot like cluster_rbuild...wish they could be combined.
* The last lbn argument is the current block on which I/O is being

View file

@ -673,7 +673,6 @@ extattr_list_vp(struct vnode *vp, int attrnamespace, void *data,
return (error);
}
#ifndef _SYS_SYSPROTO_H_
struct extattr_list_fd_args {
int fd;

View file

@ -523,7 +523,6 @@ vfs_register(struct vfsconf *vfc)
return (0);
}
/* Remove registration of a filesystem type */
static int
vfs_unregister(struct vfsconf *vfc)

View file

@ -699,7 +699,6 @@ vntblinit(void *dummy __unused)
}
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL);
/*
* Mark a mount point as busy. Used to synchronize access and to delay
* unmounting. Eventually, mountlist_mtx is not released on failure.
@ -6130,7 +6129,6 @@ vfs_cache_root_set(struct mount *mp, struct vnode *vp)
* This interface replaces MNT_VNODE_FOREACH.
*/
struct vnode *
__mnt_vnode_next_all(struct vnode **mvp, struct mount *mp)
{

View file

@ -4199,7 +4199,6 @@ getvnode(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp)
return (0);
}
/*
* Get an (NFS) file handle.
*/

View file

@ -1293,7 +1293,6 @@ vn_io_fault_pgmove(vm_page_t ma[], vm_offset_t offset, int xfersize,
return (0);
}
/*
* File table truncate routine.
*/
@ -1855,7 +1854,6 @@ vn_finished_write(struct mount *mp)
MNT_IUNLOCK(mp);
}
/*
* Filesystem secondary write operation has completed. If we are
* suspending and this operation is the last one, notify the suspender
@ -1877,8 +1875,6 @@ vn_finished_secondary_write(struct mount *mp)
MNT_IUNLOCK(mp);
}
/*
* Request a filesystem to suspend write operations.
*/