git: kernel - TMPFS - Bug fixing pass - vinitvmio(), umount, rea

看板DFBSD_commit作者時間16年前 (2010/02/13 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 22d3b3946bbeccc18eb6c307b2d8075024cfbd18 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Feb 12 23:57:53 2010 -0800 kernel - TMPFS - Bug fixing pass - vinitvmio(), umount, readdir * Call vinitvmio() with a properly bufcache-aligned number of pages * Do not call vinitvmio() for symlinks or directories (we don't use the buffer cache for those vnode types). * Adjust tmpfs_dir_attach() and tmpfs_dir_detach() so the detach code can be called from umount, and call it from umount to fix a panic. * tmpfs_dir_getdotdotdent() needed to be adjusted to handle the root vnode's NULL parent pointer. Fixed empty root directories for the mount. * Acquire TMPFS_NODE_LOCK() around opreations on dnode->tn_dir.tn_dirhead. Summary of changes: sys/vfs/tmpfs/tmpfs.h | 7 +++-- sys/vfs/tmpfs/tmpfs_subr.c | 61 ++++++++++++++++++------------------------ sys/vfs/tmpfs/tmpfs_vfsops.c | 1 + sys/vfs/tmpfs/tmpfs_vnops.c | 27 +++++++++--------- 4 files changed, 45 insertions(+), 51 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/22d3b3946bbeccc18eb6c307b2d8075024cfbd18 -- DragonFly BSD source repository
文章代碼(AID): #1BTcE6bT (DFBSD_commit)