mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
FreeBSD: stop using buffer cache-only routines on sync
Both vop_fsync and vfs_stdsync are effectively just costly no-ops as they only act on ->v_bufobj.bo_dirty et al, which are unused by zfs. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Closes #14157
This commit is contained in:
parent
4df415aa86
commit
9aea88ba44
@ -438,10 +438,6 @@ zfs_sync(vfs_t *vfsp, int waitfor)
|
||||
dsl_pool_t *dp;
|
||||
int error;
|
||||
|
||||
error = vfs_stdsync(vfsp, waitfor);
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
||||
if ((error = zfs_enter(zfsvfs, FTAG)) != 0)
|
||||
return (error);
|
||||
dp = dmu_objset_pool(zfsvfs->z_os);
|
||||
|
@ -4724,7 +4724,6 @@ static int
|
||||
zfs_freebsd_fsync(struct vop_fsync_args *ap)
|
||||
{
|
||||
|
||||
vop_stdfsync(ap);
|
||||
return (zfs_fsync(VTOZ(ap->a_vp), 0, ap->a_td->td_ucred));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user