Merge branch 'for-3.3' of git://linux-nfs.org/~bfields/linux
[linux-flexiantxendom0-3.2.10.git] / fs / nfsd / nfsctl.c
index 8daa935..748eda9 100644 (file)
@@ -273,7 +273,7 @@ static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size)
         * 2.  Is that directory a mount point, or
         * 3.  Is that directory the root of an exported file system?
         */
-       error = nlmsvc_unlock_all_by_sb(path.mnt->mnt_sb);
+       error = nlmsvc_unlock_all_by_sb(path.dentry->d_sb);
 
        path_put(&path);
        return error;