Unified getcwd() implementation
From: Bruce M Simpson (bms_at_spc.org)
Date: 08/14/03
- Previous message: Eirik Nygaard: "Re: module opt_* building"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 14 Aug 2003 20:49:29 +0100 To: freebsd-arch@freebsd.org
Hello all,
I've had the attached patch in my tree for a 1 month period without
any panics or other adverse effects that I could see.
This is from one of phk's JKH todo list items.
It merges the Linux in-kernel scanning-based getcwd() with our namei
cache based implementation, in a way which tries to use the cache
efficiently, but will use directory scanning upon a cache miss.
This also has the advantage that scandir() games are no longer needed in libc.
Please let me know your thoughts on this. This is my first real bit of vfs
related work, so I have no immediate plans to commit it until I can get
concrete review going forward.
Kind regards
BMS
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- text/plain attachment: vfs_getcwd.patch
- Previous message: Eirik Nygaard: "Re: module opt_* building"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [PATCH 12/12] FS-Cache: CacheFS: Add Documentation
... The attached patch adds documentation for CacheFS. ... +CacheFS is a
backend for the general filesystem cache facility. ... +CacheFS is based on a wandering
tree approach. ... (Linux-Kernel) - Re: If not readdir() then what?
... You are storing an internal tree representation of part of the ... reorganized
when the directory's hash tree gets reorg'ed. ... a very mature cache seems to make
a lot of sense. ... collision chain". ... (Linux-Kernel) - Re: [QUICKLIST 0/4] Arch independent quicklists V2
... layer of the tree into cache to find all the pages in the address ... every
time you set a PTE, set the corresponding bit in the mask ... Thus, you avoid visiting
most of a PMD page in the sparse case, ... should be in cache with the appropriate
bits of the mm already locked, ... (Linux-Kernel) - [Fwd: Re: + radixtree-look-aside-cache.patch added to -mm tree]
... + radixtree-look-aside-cache.patch added to -mm tree ... Subject: radixtree:
look-aside cache ... Introduce a set of lookup functions to radix tree for the read-ahead
logic. ... (Linux-Kernel) - Re: What is best searching algorithm for URL
... I have to implement cache part so when ever a new request com ... so i am thinking
to use binary tree searchto search ... request URL content in cache if it is not
there to insert in it ... You could use lock-free data structures to get around that problem
since ... (comp.programming)