struct inode *inode = nf->nf_inode;
 
        do {
-               mutex_lock(&nfsd_file_fsnotify_group->mark_mutex);
+               fsnotify_group_lock(nfsd_file_fsnotify_group);
                mark = fsnotify_find_mark(&inode->i_fsnotify_marks,
-                               nfsd_file_fsnotify_group);
+                                         nfsd_file_fsnotify_group);
                if (mark) {
                        nfm = nfsd_file_mark_get(container_of(mark,
                                                 struct nfsd_file_mark,
                                                 nfm_mark));
-                       mutex_unlock(&nfsd_file_fsnotify_group->mark_mutex);
+                       fsnotify_group_unlock(nfsd_file_fsnotify_group);
                        if (nfm) {
                                fsnotify_put_mark(mark);
                                break;
                        /* Avoid soft lockup race with nfsd_file_mark_put() */
                        fsnotify_destroy_mark(mark, nfsd_file_fsnotify_group);
                        fsnotify_put_mark(mark);
-               } else
-                       mutex_unlock(&nfsd_file_fsnotify_group->mark_mutex);
+               } else {
+                       fsnotify_group_unlock(nfsd_file_fsnotify_group);
+               }
 
                /* allocate a new nfm */
                new = kmem_cache_alloc(nfsd_file_mark_slab, GFP_KERNEL);
        }
 
        nfsd_file_fsnotify_group = fsnotify_alloc_group(&nfsd_file_fsnotify_ops,
-                                                       0);
+                                                       FSNOTIFY_GROUP_NOFS);
        if (IS_ERR(nfsd_file_fsnotify_group)) {
                pr_err("nfsd: unable to create fsnotify group: %ld\n",
                        PTR_ERR(nfsd_file_fsnotify_group));