]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/fuse/control.c
x86: cpuid, msr: use inode mutex instead of big kernel lock
[linux-2.6-omap-h63xx.git] / fs / fuse / control.c
index 8c58bd4539936d536ada3b3b98596002db5badd8..105d4a271e073b0c7d60660057d9716d798f9d1d 100644 (file)
@@ -73,7 +73,7 @@ static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
                                          struct fuse_conn *fc,
                                          const char *name,
                                          int mode, int nlink,
-                                         struct inode_operations *iop,
+                                         const struct inode_operations *iop,
                                          const struct file_operations *fop)
 {
        struct dentry *dentry;
@@ -193,8 +193,12 @@ static int fuse_ctl_get_sb(struct file_system_type *fs_type, int flags,
 
 static void fuse_ctl_kill_sb(struct super_block *sb)
 {
+       struct fuse_conn *fc;
+
        mutex_lock(&fuse_mutex);
        fuse_control_sb = NULL;
+       list_for_each_entry(fc, &fuse_conn_list, entry)
+               fc->ctl_ndents = 0;
        mutex_unlock(&fuse_mutex);
 
        kill_litter_super(sb);