From owner-cvs-src-old@FreeBSD.ORG Tue Jul 6 07:11:26 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE2A01065672 for ; Tue, 6 Jul 2010 07:11:26 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D98A48FC0C for ; Tue, 6 Jul 2010 07:11:26 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o667BQhH054330 for ; Tue, 6 Jul 2010 07:11:26 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o667BQGv054329 for cvs-src-old@freebsd.org; Tue, 6 Jul 2010 07:11:26 GMT (envelope-from jeff@repoman.freebsd.org) Message-Id: <201007060711.o667BQGv054329@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jeff@repoman.freebsd.org using -f From: Jeff Roberson Date: Tue, 6 Jul 2010 07:11:04 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ufs/ffs ffs_alloc.c ffs_inode.c ffs_softdep.c ffs_vnops.c softdep.h src/sys/ufs/ufs inode.h ufs_inode.c ufs_lookup.c ufs_vnops.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 07:11:27 -0000 jeff 2010-07-06 07:11:04 UTC FreeBSD src repository Modified files: sys/ufs/ffs ffs_alloc.c ffs_inode.c ffs_softdep.c ffs_vnops.c softdep.h sys/ufs/ufs inode.h ufs_inode.c ufs_lookup.c ufs_vnops.c Log: SVN rev 209717 on 2010-07-06 07:11:04Z by jeff - Handle the truncation of an inode with an effective link count of 0 in the context of the process that reduced the effective count. Previously all truncation as a result of unlink happened in the softdep flush thread. This had the effect of being impossible to rate limit properly with the journal code. Now the process issuing unlinks is suspended when the journal files. This has a side-effect of improving rm performance by allowing more concurrent work. - Handle two cases in inactive, one for effnlink == 0 and another when nlink finally reaches 0. - Eliminate the SPACECOUNTED related code since the truncation is no longer delayed. Discussed with: mckusick Revision Changes Path 1.159 +0 -20 src/sys/ufs/ffs/ffs_alloc.c 1.119 +2 -4 src/sys/ufs/ffs/ffs_inode.c 1.245 +8 -74 src/sys/ufs/ffs/ffs_softdep.c 1.195 +0 -3 src/sys/ufs/ffs/ffs_vnops.c 1.22 +1 -1 src/sys/ufs/ffs/softdep.h 1.58 +0 -1 src/sys/ufs/ufs/inode.h 1.71 +9 -5 src/sys/ufs/ufs/ufs_inode.c 1.105 +2 -0 src/sys/ufs/ufs/ufs_lookup.c 1.322 +12 -20 src/sys/ufs/ufs/ufs_vnops.c