vfs_default: Change vop_stddeallocate() from static to global
A future commit to the NFS client uses vop_stddeallocate() for cases where the NFS server does not support a Deallocate operation. Change vop_stddeallocate() from static to global so that it can be called by the NFS client. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D31640
This commit is contained in:
parent
5a3a8cb01a
commit
da779f262c
@ -93,7 +93,6 @@ static int vop_stdgetpages_async(struct vop_getpages_async_args *ap);
|
||||
static int vop_stdread_pgcache(struct vop_read_pgcache_args *ap);
|
||||
static int vop_stdstat(struct vop_stat_args *ap);
|
||||
static int vop_stdvput_pair(struct vop_vput_pair_args *ap);
|
||||
static int vop_stddeallocate(struct vop_deallocate_args *ap);
|
||||
|
||||
/*
|
||||
* This vnode table stores what we want to do if the filesystem doesn't
|
||||
@ -1126,7 +1125,7 @@ vp_zerofill(struct vnode *vp, struct vattr *vap, off_t *offsetp, off_t *lenp,
|
||||
return (error);
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
vop_stddeallocate(struct vop_deallocate_args *ap)
|
||||
{
|
||||
struct vnode *vp;
|
||||
|
@ -861,6 +861,7 @@ int vop_stdadvlock(struct vop_advlock_args *ap);
|
||||
int vop_stdadvlockasync(struct vop_advlockasync_args *ap);
|
||||
int vop_stdadvlockpurge(struct vop_advlockpurge_args *ap);
|
||||
int vop_stdallocate(struct vop_allocate_args *ap);
|
||||
int vop_stddeallocate(struct vop_deallocate_args *ap);
|
||||
int vop_stdset_text(struct vop_set_text_args *ap);
|
||||
int vop_stdpathconf(struct vop_pathconf_args *);
|
||||
int vop_stdpoll(struct vop_poll_args *);
|
||||
|
Loading…
Reference in New Issue
Block a user