xfs_dnlc_lookup

Cheng Jin chengjin at eecs.umich.edu
Wed Apr 1 23:33:48 CEST 1998


hi, guys.

I am looking at xfs_dnlc_lookup function in xfs_node.c.  It calls
cache_lookup to search the existing vnode cache, and after that it checks
the vnode pointer stored in tbl.  Tbl seems to store the pointer to the
most recently brought in vnode, which should also be in the vnode cache(?)

Why is tbl checked after cache_lookup then?  Is it trying to prevent two
vnodes from being created when two simultaneous opens are done on the same
file? would it be better to check tbl first then?


Thanks,

Cheng
------------------------------------------
Say who you are, but know who you are not.






More information about the Arla-drinkers mailing list