vfs_syscalls.c (9356) | vfs_syscalls.c (9507) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 |
39 * $Id: vfs_syscalls.c,v 1.26 1995/06/28 07:06:40 davidg Exp $ | 39 * $Id: vfs_syscalls.c,v 1.27 1995/06/28 12:00:57 davidg Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/namei.h> 45#include <sys/filedesc.h> 46#include <sys/kernel.h> 47#include <sys/file.h> --- 1732 unchanged lines hidden (view full) --- 1780 int error; 1781 1782 error = getvnode(p->p_fd, uap->fd, &fp); 1783 if (error) 1784 return (error); 1785 vp = (struct vnode *)fp->f_data; 1786 VOP_LOCK(vp); 1787 if (vp->v_object) { | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/namei.h> 45#include <sys/filedesc.h> 46#include <sys/kernel.h> 47#include <sys/file.h> --- 1732 unchanged lines hidden (view full) --- 1780 int error; 1781 1782 error = getvnode(p->p_fd, uap->fd, &fp); 1783 if (error) 1784 return (error); 1785 vp = (struct vnode *)fp->f_data; 1786 VOP_LOCK(vp); 1787 if (vp->v_object) { |
1788 _vm_object_page_clean(vp->v_object, 0, 0 ,0); | 1788 vm_object_page_clean(vp->v_object, 0, 0 ,0, FALSE); |
1789 } 1790 error = VOP_FSYNC(vp, fp->f_cred, MNT_WAIT, p); 1791 VOP_UNLOCK(vp); 1792 return (error); 1793} 1794 1795/* 1796 * Rename files. Source and destination must either both be directories, --- 459 unchanged lines hidden --- | 1789 } 1790 error = VOP_FSYNC(vp, fp->f_cred, MNT_WAIT, p); 1791 VOP_UNLOCK(vp); 1792 return (error); 1793} 1794 1795/* 1796 * Rename files. Source and destination must either both be directories, --- 459 unchanged lines hidden --- |