Re: [RFC v3 02/13] vfs: introduce private radix tree structures

2012-10-11 Thread Zhi Yong Wu
On Wed, Oct 10, 2012 at 11:34 PM, David Sterba wrote: > On Wed, Oct 10, 2012 at 06:07:24PM +0800, zwu.ker...@gmail.com wrote: >> +void hot_track_init(struct super_block *sb) >> +{ > ... >> +} > >> +void hot_track_exit(struct super_block *sb) >> +{ >> + hot_cache_exit(); >> +} > > Needs to be e

Re: [RFC v3 02/13] vfs: introduce private radix tree structures

2012-10-10 Thread David Sterba
On Wed, Oct 10, 2012 at 06:07:24PM +0800, zwu.ker...@gmail.com wrote: > +void hot_track_init(struct super_block *sb) > +{ ... > +} > +void hot_track_exit(struct super_block *sb) > +{ > + hot_cache_exit(); > +} Needs to be exported if btrfs is built as a module, otherwise does not link LDS

[RFC v3 02/13] vfs: introduce private radix tree structures

2012-10-10 Thread zwu . kernel
From: Zhi Yong Wu One root structure hot_info is defined, is hooked up in super_block, and will be used to hold radix tree root, hash list root and some other information, etc. Adds hot_inode_tree struct to keep track of frequently accessed files, and be keyed by {inode, offset}. Trees contai