/* Flush any dirty pages for this process, and check for write errors. The return status from this call provides a reliable indication of whether any write errors occurred for this process.  */
static int nfs_file_fsync(struct file *, struct dentry *dentry, int datasync)
/* Flush any dirty pages for this process, and check for write errors. The return status from this call provides a reliable indication of whether any write errors occurred for this process.  */
static int nfs_file_fsync(struct file *, struct dentry *dentry, int datasync)
{
	struct nfs_open_context *ctx = nfs_file_open_context(file);
	struct inode *inode = dentry->d_inode;
	dprintk("NFS: fsync file(%s/%s) datasync %d\n",
			dentry->d_parent->d_name.name, dentry->d_name.name,
			datasync);
	nfs_inc_stats(inode, NFSIOS_VFSFSYNC);
	return nfs_do_fsync(ctx, inode);
}