NFS implementation redundancy

From: Xin Zhao
Date: Tue May 30 2006 - 18:26:59 EST


Hi,

I am looking at NFS implementation included in kernel 2.6.16. In
nfs/inode.c, function nfs_delete_inode() called nfs_wb_all() after
truncate_inode_pages(). However, truncate_inode_pages is supposed to
flush out pages, why do we still need nfs_wb_all()? Moreover, after
this nfs_wb_all, function nfs_delete_inode() immediately calls
clear_inode(), which will call nfs_wb_all() again.

This looks redundant to me. Any explaination on this?

Thanks,
Xin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/