summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_inode.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2013-01-18 05:09:22 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2013-01-18 05:09:22 +0000
commitfd9fe78e14c556c9623d71c9b952fa97b4b279c5 (patch)
tree7caebae67c45eab6a0fd20c8a1a80e89060ef910 /sys/ntfs/ntfs_inode.h
parent6fc066f972e18a57fae0e5376f520e34678b363f (diff)
Constrain the amount of kernel memory used by NTFS. Keep a small cache of
loaded ntnodes and once the maximum is reached, unload the least recently used ntnode before loading a new one. This avoids leaving large data structures hanging around, which only get cleaned up when the vnode is reclaimed. Additionally, the buffer cache should contain the data needed to reload the ntnode. ok beck@
Diffstat (limited to 'sys/ntfs/ntfs_inode.h')
-rw-r--r--sys/ntfs/ntfs_inode.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/ntfs/ntfs_inode.h b/sys/ntfs/ntfs_inode.h
index 282303ba36a..7e255985e7a 100644
--- a/sys/ntfs/ntfs_inode.h
+++ b/sys/ntfs/ntfs_inode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_inode.h,v 1.5 2009/08/13 16:00:53 jasper Exp $ */
+/* $OpenBSD: ntfs_inode.h,v 1.6 2013/01/18 05:09:21 jsing Exp $ */
/* $NetBSD: ntfs_inode.h,v 1.1 2002/12/23 17:38:33 jdolecek Exp $ */
/*-
@@ -38,8 +38,11 @@ struct ntnode {
dev_t i_dev; /* Device associated with the inode. */
LIST_ENTRY(ntnode) i_hash;
+ TAILQ_ENTRY(ntnode) i_loaded;
+
struct ntnode *i_next;
struct ntnode **i_prev;
+
struct ntfsmount *i_mp;
ino_t i_number;
u_int32_t i_flag;