Deleted Added
full compact
smbfs_node.c (107821) smbfs_node.c (107842)
1/*
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/fs/smbfs/smbfs_node.c 107821 2002-12-13 10:15:01Z tjr $
32 * $FreeBSD: head/sys/fs/smbfs/smbfs_node.c 107842 2002-12-13 23:44:00Z tjr $
33 */
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/mount.h>
40#include <sys/proc.h>

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

317 if (np->n_name)
318 smbfs_name_free(np->n_name);
319 FREE(np, M_SMBNODE);
320 if (dvp) {
321 VI_LOCK(dvp);
322 if (dvp->v_usecount >= 1) {
323 VI_UNLOCK(dvp);
324 vrele(dvp);
33 */
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>
38#include <sys/malloc.h>
39#include <sys/mount.h>
40#include <sys/proc.h>

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

317 if (np->n_name)
318 smbfs_name_free(np->n_name);
319 FREE(np, M_SMBNODE);
320 if (dvp) {
321 VI_LOCK(dvp);
322 if (dvp->v_usecount >= 1) {
323 VI_UNLOCK(dvp);
324 vrele(dvp);
325 /*
326 * Indicate that we released something; see comment
327 * in smbfs_unmount().
328 */
329 smp->sm_didrele = 1;
325 } else {
326 VI_UNLOCK(dvp);
327 SMBERROR("BUG: negative use count for parent!\n");
328 }
329 }
330 return 0;
331}
332

--- 85 unchanged lines hidden ---
330 } else {
331 VI_UNLOCK(dvp);
332 SMBERROR("BUG: negative use count for parent!\n");
333 }
334 }
335 return 0;
336}
337

--- 85 unchanged lines hidden ---