freebsd-dev/sys/fs/tmpfs
Attilio Rao 5e60cb948e Remove a racy checks on resident and cached pages for
tmpfs_mapped{read, write}() functions:
- tmpfs_mapped{read, write}() are only called within VOP_{READ, WRITE}(),
  which check before-hand to work only on valid VREG vnodes.  Also the
  vnode is locked for the duration of the work, making vnode reclaiming
  impossible, during the operation. Hence, vobj can never be NULL.
- Currently check on resident pages and cached pages without vm object
  lock held is racy and can do even more harm than good, as a page could
  be transitioning between these 2 pools and then be skipped entirely.
  Skip the checks as lookups on empty splay trees are very cheap.

Discussed with:	alc
Tested by:	flo
MFC after:	2 weeks
2013-02-10 01:04:10 +00:00
..
tmpfs_fifoops.c Reflect license change of NetBSD code. 2008-09-03 18:53:48 +00:00
tmpfs_fifoops.h Reflect license change of NetBSD code. 2008-09-03 18:53:48 +00:00
tmpfs_subr.c tmpfs: Replace directory entry linked list with RB-Tree. 2013-01-06 22:15:44 +00:00
tmpfs_vfsops.c tmpfs: Replace directory entry linked list with RB-Tree. 2013-01-06 22:15:44 +00:00
tmpfs_vnops.c Remove a racy checks on resident and cached pages for 2013-02-10 01:04:10 +00:00
tmpfs_vnops.h Reflect license change of NetBSD code. 2008-09-03 18:53:48 +00:00
tmpfs.h tmpfs: Replace directory entry linked list with RB-Tree. 2013-01-06 22:15:44 +00:00