struct nls_table *local_nls;
        unsigned int rsize;
        unsigned int wsize;
+       atomic_t active;
        uid_t   mnt_uid;
        gid_t   mnt_gid;
        mode_t  mnt_file_mode;
 
 extern mempool_t *cifs_req_poolp;
 extern mempool_t *cifs_mid_poolp;
 
+void
+cifs_sb_active(struct super_block *sb)
+{
+       struct cifs_sb_info *server = CIFS_SB(sb);
+
+       if (atomic_inc_return(&server->active) == 1)
+               atomic_inc(&sb->s_active);
+}
+
+void
+cifs_sb_deactive(struct super_block *sb)
+{
+       struct cifs_sb_info *server = CIFS_SB(sb);
+
+       if (atomic_dec_and_test(&server->active))
+               deactivate_super(sb);
+}
+
 static int
 cifs_read_super(struct super_block *sb, void *data,
                const char *devname, int silent)
 
 extern const struct address_space_operations cifs_addr_ops_smallbuf;
 
 /* Functions related to super block operations */
-/* extern const struct super_operations cifs_super_ops;*/
-extern void cifs_read_inode(struct inode *);
-/*extern void cifs_delete_inode(struct inode *);*/  /* BB not needed yet */
-/* extern void cifs_write_inode(struct inode *); */ /* BB not needed yet */
+extern void cifs_sb_active(struct super_block *sb);
+extern void cifs_sb_deactive(struct super_block *sb);
 
 /* Functions related to inodes */
 extern const struct inode_operations cifs_dir_inode_ops;
 
        /* lock scope id (0 if none) */
        struct file *pfile; /* needed for writepage */
        struct dentry *dentry;
-       struct vfsmount *mnt;
        struct tcon_link *tlink;
        struct mutex lock_mutex;
        struct list_head llist; /* list of byte range locks we have. */
 
 
 extern struct cifsFileInfo *cifs_new_fileinfo(struct inode *newinode,
                                __u16 fileHandle, struct file *file,
-                               struct vfsmount *mnt, struct tcon_link *tlink,
+                               struct tcon_link *tlink,
                                unsigned int oflags, __u32 oplock);
 extern int cifs_posix_open(char *full_path, struct inode **pinode,
                                struct super_block *sb,
 
 
 struct cifsFileInfo *
 cifs_new_fileinfo(struct inode *newinode, __u16 fileHandle, struct file *file,
-                 struct vfsmount *mnt, struct tcon_link *tlink,
-                 unsigned int oflags, __u32 oplock)
+                 struct tcon_link *tlink, unsigned int oflags, __u32 oplock)
 {
        struct dentry *dentry = file->f_path.dentry;
        struct cifsFileInfo *pCifsFile;
        pCifsFile->pid = current->tgid;
        pCifsFile->uid = current_fsuid();
        pCifsFile->dentry = dget(dentry);
-       pCifsFile->mnt = mnt;
        pCifsFile->pfile = file;
        pCifsFile->invalidHandle = false;
        pCifsFile->closePend = false;
                }
 
                pfile_info = cifs_new_fileinfo(newinode, fileHandle, filp,
-                                               nd->path.mnt, tlink, oflags,
-                                               oplock);
+                                               tlink, oflags, oplock);
                if (pfile_info == NULL) {
                        fput(filp);
                        CIFSSMBClose(xid, tcon, fileHandle);
                        }
 
                        cfile = cifs_new_fileinfo(newInode, fileHandle, filp,
-                                                 nd->path.mnt, tlink,
-                                                 nd->intent.open.flags,
+                                                 tlink, nd->intent.open.flags,
                                                  oplock);
                        if (cfile == NULL) {
                                fput(filp);
 
                        }
 
                        pCifsFile = cifs_new_fileinfo(inode, netfid, file,
-                                                       file->f_path.mnt,
                                                        tlink, oflags, oplock);
                        if (pCifsFile == NULL) {
                                CIFSSMBClose(xid, tcon, netfid);
        if (rc != 0)
                goto out;
 
-       pCifsFile = cifs_new_fileinfo(inode, netfid, file, file->f_path.mnt,
-                                       tlink, file->f_flags, oplock);
+       pCifsFile = cifs_new_fileinfo(inode, netfid, file, tlink,
+                                       file->f_flags, oplock);
        if (pCifsFile == NULL) {
                rc = -ENOMEM;
                goto out;
 
 void cifs_oplock_break_get(struct cifsFileInfo *cfile)
 {
-       mntget(cfile->mnt);
+       cifs_sb_active(cfile->dentry->d_sb);
        cifsFileInfo_get(cfile);
 }
 
 void cifs_oplock_break_put(struct cifsFileInfo *cfile)
 {
-       mntput(cfile->mnt);
        cifsFileInfo_put(cfile);
+       cifs_sb_deactive(cfile->dentry->d_sb);
 }
 
 const struct address_space_operations cifs_addr_ops = {