source code questions

Assar Westerlund assar at sics.se
Wed Mar 25 22:26:34 CET 1998


Cheng Jin <chengjin at eecs.umich.edu> writes:
> Also when xfs_data_valid returns, "xfs_read" would call VOP_READ,
> which is used by vn_read to find the underlying fs read.  Why would
> xfs_read call VOP_READ again?

Once we have verified that we have cached a copy of the data in the
file (done by xfs_data_valid) we just call VOP_READ on the vnode of
the cache file.

	struct vnode *t = DATA_FROM_VNODE(ap->a_vp);

(This is the vnode of the cache file.)

/assar





More information about the Arla-drinkers mailing list