summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/softdep.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2010-07-06 07:11:04 +0000
committerjeff <jeff@FreeBSD.org>2010-07-06 07:11:04 +0000
commit285c3f355cf6129d252b690ee2d17bc7d0964d7a (patch)
treecd17a559671a6f62e7bb6f03a3b2db2ba9afa573 /sys/ufs/ffs/softdep.h
parent26f5c3232149076d97f1f1ef9e8c339400f0a8be (diff)
downloadFreeBSD-src-285c3f355cf6129d252b690ee2d17bc7d0964d7a.zip
FreeBSD-src-285c3f355cf6129d252b690ee2d17bc7d0964d7a.tar.gz
- 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
Diffstat (limited to 'sys/ufs/ffs/softdep.h')
-rw-r--r--sys/ufs/ffs/softdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/softdep.h b/sys/ufs/ffs/softdep.h
index e61b81b..23afbf7 100644
--- a/sys/ufs/ffs/softdep.h
+++ b/sys/ufs/ffs/softdep.h
@@ -118,7 +118,7 @@
#define DIRCHG 0x000080 /* diradd, dirrem only */
#define GOINGAWAY 0x000100 /* indirdep, jremref only */
#define IOSTARTED 0x000200 /* inodedep, pagedep, bmsafemap only */
-#define SPACECOUNTED 0x000400 /* inodedep only */
+#define UNUSED400 0x000400 /* currently available. */
#define NEWBLOCK 0x000800 /* pagedep, jaddref only */
#define INPROGRESS 0x001000 /* dirrem, freeblks, freefrag, freefile only */
#define UFS1FMT 0x002000 /* indirdep only */
OpenPOWER on IntegriCloud