void nfs_release_automount_timer(void)
{
- if (list_empty(&nfs_automount_list)) {
+ if (list_empty(&nfs_automount_list))
cancel_delayed_work(&nfs_automount_task);
- flush_scheduled_work();
- }
}
/*
{
#ifdef CONFIG_NFS_V4
struct vfsmount *mnt = NULL;
- switch (server->nfs_client->cl_nfsversion) {
+ switch (server->nfs_client->rpc_ops->version) {
case 2:
case 3:
mnt = vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata);