Deleted Added
full compact
smb_conn.c (176518) smb_conn.c (176559)
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

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

30 * SUCH DAMAGE.
31 */
32
33/*
34 * Connection engine.
35 */
36
37#include <sys/cdefs.h>
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

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

30 * SUCH DAMAGE.
31 */
32
33/*
34 * Connection engine.
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/netsmb/smb_conn.c 176518 2008-02-24 16:26:52Z attilio $");
38__FBSDID("$FreeBSD: head/sys/netsmb/smb_conn.c 176559 2008-02-25 18:45:57Z attilio $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>
43#include <sys/malloc.h>
44#include <sys/priv.h>
45#include <sys/proc.h>
46#include <sys/lock.h>

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

331 return;
332 lockmgr(&cp->co_lock, LK_DRAIN, NULL);
333 smb_co_gone(cp, scred);
334}
335
336int
337smb_co_lockstatus(struct smb_connobj *cp, struct thread *td)
338{
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>
43#include <sys/malloc.h>
44#include <sys/priv.h>
45#include <sys/proc.h>
46#include <sys/lock.h>

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

331 return;
332 lockmgr(&cp->co_lock, LK_DRAIN, NULL);
333 smb_co_gone(cp, scred);
334}
335
336int
337smb_co_lockstatus(struct smb_connobj *cp, struct thread *td)
338{
339 return lockstatus(&cp->co_lock, td);
339 return lockstatus(&cp->co_lock);
340}
341
342int
343smb_co_lock(struct smb_connobj *cp, int flags, struct thread *td)
344{
345
346 if (cp->co_flags & SMBO_GONE)
347 return EINVAL;

--- 557 unchanged lines hidden ---
340}
341
342int
343smb_co_lock(struct smb_connobj *cp, int flags, struct thread *td)
344{
345
346 if (cp->co_flags & SMBO_GONE)
347 return EINVAL;

--- 557 unchanged lines hidden ---