Deleted Added
full compact
kern_acct.c (190888) kern_acct.c (191990)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * Copyright (c) 2005 Robert N. M. Watson
6 * All rights reserved.
7 *
8 * All or some portions of this file are derived from material licensed

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

63 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
64 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65 * SUCH DAMAGE.
66 *
67 * @(#)kern_acct.c 8.1 (Berkeley) 6/14/93
68 */
69
70#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * Copyright (c) 2005 Robert N. M. Watson
6 * All rights reserved.
7 *
8 * All or some portions of this file are derived from material licensed

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

63 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
64 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65 * SUCH DAMAGE.
66 *
67 * @(#)kern_acct.c 8.1 (Berkeley) 6/14/93
68 */
69
70#include <sys/cdefs.h>
71__FBSDID("$FreeBSD: head/sys/kern/kern_acct.c 190888 2009-04-10 10:52:19Z rwatson $");
71__FBSDID("$FreeBSD: head/sys/kern/kern_acct.c 191990 2009-05-11 15:33:26Z attilio $");
72
73#include "opt_mac.h"
74
75#include <sys/param.h>
76#include <sys/systm.h>
77#include <sys/acct.h>
78#include <sys/fcntl.h>
79#include <sys/kernel.h>

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

581 acct_state |= ACCT_EXITREQ;
582 return;
583 }
584
585 /*
586 * Stopping here is better than continuing, maybe it will be VBAD
587 * next time around.
588 */
72
73#include "opt_mac.h"
74
75#include <sys/param.h>
76#include <sys/systm.h>
77#include <sys/acct.h>
78#include <sys/fcntl.h>
79#include <sys/kernel.h>

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

581 acct_state |= ACCT_EXITREQ;
582 return;
583 }
584
585 /*
586 * Stopping here is better than continuing, maybe it will be VBAD
587 * next time around.
588 */
589 if (VFS_STATFS(acct_vp->v_mount, &sb, curthread) < 0) {
589 if (VFS_STATFS(acct_vp->v_mount, &sb) < 0) {
590 VFS_UNLOCK_GIANT(vfslocked);
591 return;
592 }
593 VFS_UNLOCK_GIANT(vfslocked);
594 if (acct_suspended) {
595 if (sb.f_bavail > (int64_t)(acctresume * sb.f_blocks /
596 100)) {
597 acct_suspended = 0;

--- 59 unchanged lines hidden ---
590 VFS_UNLOCK_GIANT(vfslocked);
591 return;
592 }
593 VFS_UNLOCK_GIANT(vfslocked);
594 if (acct_suspended) {
595 if (sb.f_bavail > (int64_t)(acctresume * sb.f_blocks /
596 100)) {
597 acct_suspended = 0;

--- 59 unchanged lines hidden ---