git: kernel - SWAP CACHE part 19/many - distinguish bulk data in

看板DFBSD_commit作者時間16年前 (2010/02/13 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit b8a41159211b865cc8ea882ac52601f4230dc766 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Feb 11 20:54:05 2010 -0800 kernel - SWAP CACHE part 19/many - distinguish bulk data in HAMMER block dev * Add buf->flags/B_NOTMETA, vm_page->flags/PG_NOTMETA. If set the pages underlying the buffer will not be considered meta-data from the point of view of the swapcache. * HAMMER must sometimes access bulk data via the block device instead of via a file vnode. For example, the reblocking and mirroring code. We do not want this data to be misinterpreted as meta-data when the meta-data-only swapcache is turned on, otherwise it will blow out the actual meta-data in the swapcache. HAMMER_RECTYPE_DATA and HAMMER_RECTYPE_DB are considered normal data. All other record types (e.g. direntry, inode, etc) are meta-data. Summary of changes: sys/kern/vfs_bio.c | 7 +++++++ sys/sys/buf.h | 8 +++++++- sys/vfs/hammer/hammer.h | 1 + sys/vfs/hammer/hammer_btree.c | 20 ++++++++++++++++++++ sys/vfs/hammer/hammer_io.c | 15 +++++++++++++++ sys/vfs/hammer/hammer_reblock.c | 1 + sys/vm/vm_page.h | 2 ++ sys/vm/vm_swapcache.c | 2 +- 8 files changed, 54 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b8a41159211b865cc8ea882ac52601f4230dc766 -- DragonFly BSD source repository
文章代碼(AID): #1BTcE7XO (DFBSD_commit)