NetBSD/sys/ufs/ffs
drochner bffbce1754 import a fix from FreeBSD (rev.1.185):
After a rmdir()ed directory has been truncated, force an update of
the directory's inode after queuing the dirrem that will decrement
the parent directory's link count.  This will force the update of
the parent directory's actual link to actually be scheduled.  Without
this change the parent directory's actual link count would not be
updated until ufs_inactive() cleared the inode of the newly removed
directory, which might be deferred indefinitely.  ufs_inactive()
will not be called as long as any process holds a reference to the
removed directory, and ufs_inactive() will not clear the inode if
the link count is non-zero, which could be the result of an earlier
system crash.
[plus description about problems woth background fsck solved
by this; irrelevant to NetBSD]

For me, the good effect is at least that I'm getting less filesystem
inconsistencies after a crash.

Approved by christos quite a while ago.
2006-10-24 19:36:26 +00:00
..
ffs_alloc.c ffs_alloc: remove an assertion which is no longer true. 2006-10-15 12:23:56 +00:00
ffs_appleufs.c PR 33697: complete timecounter conversion 2006-06-11 09:26:04 +00:00
ffs_balloc.c integrate kauth. 2006-05-14 21:31:52 +00:00
ffs_bswap.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
ffs_extern.h Fix alignement problems for fhandle_t, exposed by gcc4.1. 2006-07-13 12:00:24 +00:00
ffs_inode.c ffs_truncate: don't forget to zero the past eof in the case of 2006-10-17 11:39:18 +00:00
ffs_snapshot.c Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since all 2006-10-20 18:58:12 +00:00
ffs_softdep.c import a fix from FreeBSD (rev.1.185): 2006-10-24 19:36:26 +00:00
ffs_softdep.stub.c Add __unused to unused function arguments. 2006-10-13 10:21:21 +00:00
ffs_subr.c - sprinkle __unused on function decls. 2006-10-12 01:30:41 +00:00
ffs_tables.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
ffs_vfsops.c Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since all 2006-10-20 18:58:12 +00:00
ffs_vnops.c - sprinkle __unused on function decls. 2006-10-12 01:30:41 +00:00
fs.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
Makefile
softdep.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00