freebsd-nq/sys/fs/nandfs
Konstantin Belousov 6c21f6edb8 The VOP_LOOKUP() implementations for CREATE op do not put the name
into namecache, to avoid cache trashing when doing large operations.
E.g., tar archive extraction is not usually followed by access to many
of the files created.

Right now, each VOP_LOOKUP() implementation explicitely knowns about
this quirk and tests for both MAKEENTRY flag presence and op != CREATE
to make the call to cache_enter().  Centralize the handling of the
quirk into VFS, by deciding to cache only by MAKEENTRY flag in VOP.
VFS now sets NOCACHE flag for CREATE namei() calls.

Note that the change in semantic is backward-compatible and could be
merged to the stable branch, and is compatible with non-changed
third-party filesystems which correctly handle MAKEENTRY.

Suggested by:	Chris Torek <torek@pi-coral.com>
Reviewed by:	mckusick
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2014-12-18 10:01:12 +00:00
..
bmap.c More properly account for free/reserved segments to avoid deadlock or 2014-04-18 17:03:35 +00:00
bmap.h
nandfs_alloc.c
nandfs_bmap.c
nandfs_buffer.c
nandfs_cleaner.c
nandfs_cpfile.c
nandfs_dat.c
nandfs_dir.c
nandfs_fs.h
nandfs_ifile.c
nandfs_mount.h
nandfs_segment.c - Convert the bufobj lock to rwlock. 2013-05-31 00:43:41 +00:00
nandfs_subr.c Fix a minor style(9) issue. 2014-08-02 05:05:05 +00:00
nandfs_subr.h
nandfs_sufile.c
nandfs_vfsops.c Set the erase block size properly in the case the underlying media 2014-08-02 05:05:16 +00:00
nandfs_vnops.c The VOP_LOOKUP() implementations for CREATE op do not put the name 2014-12-18 10:01:12 +00:00
nandfs.h Naughty NANDFS was using hidden unused flag, hiding the fact that the 2014-07-07 23:21:07 +00:00