git: kernel - TMPFS - Features, don't sync on umount, enforce sn

看板DFBSD_commit作者時間16年前 (2010/02/21 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d4623db37d5f02efd8bc2253c289e7d6a1f77e7d Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Feb 20 15:03:41 2010 -0800 kernel - TMPFS - Features, don't sync on umount, enforce snocache on root * The umount code was syncing the contents of tmpfs to swap. Fix it so it doesn't. * Set the snocache flag on the tmpfs root node and silently enforce it on any chflags operation. This prevents swapcache from trying to pageout file data from tmpfs (which is already backed by swap). Summary of changes: sys/vfs/tmpfs/tmpfs.h | 2 -- sys/vfs/tmpfs/tmpfs_subr.c | 5 +++++ sys/vfs/tmpfs/tmpfs_vfsops.c | 31 +++++++++++++++++++++++++------ sys/vfs/tmpfs/tmpfs_vnops.c | 4 +--- 4 files changed, 31 insertions(+), 11 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d4623db37d5f02efd8bc2253c289e7d6a1f77e7d -- DragonFly BSD source repository
文章代碼(AID): #1BW73uy0 (DFBSD_commit)