Re: regarding NFS

Trond Myklebust
2002-04-19T09:37:45Z

>>>>> " " == Jehanzeb Hameed <u990056@giki.edu.pk> writes:

> I was looking at the code and I couldnt find how NFS implements
> inode->i_mapping->a_ops->readpage(filp,page) in
> used by generic_file_read in mm/filemapc.c. All I could find
> was inode->i_op->readpage(filp,page). But NFS uses
> generic_file_read....so how does it work out. Kernel 2.4.17??

Look again: there is no such thing as readpage() in the struct
inode_operations in the 2.4.x kernels. Just grep for 'nfs_file_aops'
in the source.

Cheers,
Trond