Deleted Added
full compact
nfs_vnops.c (9842) nfs_vnops.c (10551)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
37 * $Id: nfs_vnops.c,v 1.22 1995/07/24 16:38:05 dfr Exp $
37 * $Id: nfs_vnops.c,v 1.23 1995/08/01 18:50:59 davidg Exp $
38 */
39
40/*
41 * vnode op calls for Sun NFS version 2 and 3
42 */
43
44#include <sys/param.h>
45#include <sys/kernel.h>

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

2595int
2596nfs_bmap(ap)
2597 struct vop_bmap_args /* {
2598 struct vnode *a_vp;
2599 daddr_t a_bn;
2600 struct vnode **a_vpp;
2601 daddr_t *a_bnp;
2602 int *a_runp;
38 */
39
40/*
41 * vnode op calls for Sun NFS version 2 and 3
42 */
43
44#include <sys/param.h>
45#include <sys/kernel.h>

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

2595int
2596nfs_bmap(ap)
2597 struct vop_bmap_args /* {
2598 struct vnode *a_vp;
2599 daddr_t a_bn;
2600 struct vnode **a_vpp;
2601 daddr_t *a_bnp;
2602 int *a_runp;
2603 int *a_runb;
2603 } */ *ap;
2604{
2605 register struct vnode *vp = ap->a_vp;
2606
2607 if (ap->a_vpp != NULL)
2608 *ap->a_vpp = vp;
2609 if (ap->a_bnp != NULL)
2610 *ap->a_bnp = ap->a_bn * btodb(vp->v_mount->mnt_stat.f_iosize);
2611 if (ap->a_runp != NULL)
2612 *ap->a_runp = 0;
2604 } */ *ap;
2605{
2606 register struct vnode *vp = ap->a_vp;
2607
2608 if (ap->a_vpp != NULL)
2609 *ap->a_vpp = vp;
2610 if (ap->a_bnp != NULL)
2611 *ap->a_bnp = ap->a_bn * btodb(vp->v_mount->mnt_stat.f_iosize);
2612 if (ap->a_runp != NULL)
2613 *ap->a_runp = 0;
2614 if (ap->a_runb != NULL)
2615 *ap->a_runb = 0;
2613 return (0);
2614}
2615
2616/*
2617 * Strategy routine.
2618 * For async requests when nfsiod(s) are running, queue the request by
2619 * calling nfs_asyncio(), otherwise just all nfs_doio() to do the
2620 * request.

--- 709 unchanged lines hidden ---
2616 return (0);
2617}
2618
2619/*
2620 * Strategy routine.
2621 * For async requests when nfsiod(s) are running, queue the request by
2622 * calling nfs_asyncio(), otherwise just all nfs_doio() to do the
2623 * request.

--- 709 unchanged lines hidden ---