vfs_vnops.c (b4a58fbf640409a1e507d9f7b411c83a3f83a2f3) vfs_vnops.c (2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 1656 unchanged lines hidden (view full) ---

1665 }
1666 return (error);
1667}
1668
1669/*
1670 * File table vnode stat routine.
1671 */
1672int
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 1656 unchanged lines hidden (view full) ---

1665 }
1666 return (error);
1667}
1668
1669/*
1670 * File table vnode stat routine.
1671 */
1672int
1673vn_statfile(struct file *fp, struct stat *sb, struct ucred *active_cred,
1674 struct thread *td)
1673vn_statfile(struct file *fp, struct stat *sb, struct ucred *active_cred)
1675{
1676 struct vnode *vp = fp->f_vnode;
1677 int error;
1678
1679 vn_lock(vp, LK_SHARED | LK_RETRY);
1674{
1675 struct vnode *vp = fp->f_vnode;
1676 int error;
1677
1678 vn_lock(vp, LK_SHARED | LK_RETRY);
1680 error = VOP_STAT(vp, sb, active_cred, fp->f_cred, td);
1679 error = VOP_STAT(vp, sb, active_cred, fp->f_cred);
1681 VOP_UNLOCK(vp);
1682
1683 return (error);
1684}
1685
1686/*
1687 * File table vnode ioctl routine.
1688 */

--- 2020 unchanged lines hidden ---
1680 VOP_UNLOCK(vp);
1681
1682 return (error);
1683}
1684
1685/*
1686 * File table vnode ioctl routine.
1687 */

--- 2020 unchanged lines hidden ---