Vnode API change: add global vnode cache

2014-04-06 Thread J. Hannken-Illjes
Currently all file systems have to implement their own cache of vnode / fs node pairs. Most file systems use a copy and pasted version of ufs_ihash. So add a global vnode cache with lookup and remove: /* * Lookup a vnode / fs node pair by key and return it referenced through vpp. */ int

Re: Vnode API change: add global vnode cache

2014-04-06 Thread David Holland
On Sun, Apr 06, 2014 at 12:14:24PM +0200, J. Hannken-Illjes wrote: Currently all file systems have to implement their own cache of vnode / fs node pairs. Most file systems use a copy and pasted version of ufs_ihash. So add a global vnode cache with lookup and remove: Heh, would you

Re: Vnode API change: add global vnode cache

2014-04-06 Thread J. Hannken-Illjes
On 06 Apr 2014, at 21:12, David Holland dholland-t...@netbsd.org wrote: On Sun, Apr 06, 2014 at 12:14:24PM +0200, J. Hannken-Illjes wrote: Currently all file systems have to implement their own cache of vnode / fs node pairs. Most file systems use a copy and pasted version of ufs_ihash.

Re: Vnode API change: add global vnode cache

2014-04-06 Thread Taylor R Campbell
Date: Sun, 6 Apr 2014 12:14:24 +0200 From: J. Hannken-Illjes hann...@eis.cs.tu-bs.de Currently all file systems have to implement their own cache of vnode / fs node pairs. Most file systems use a copy and pasted version of ufs_ihash. So add a global vnode cache with lookup and