Commit:     ff79544754631cf3d237ff47b7d0e7ab2d211fcf
Parent:     436d1654b341e55a73cada13cce3142b619f23bb
Author:     Miklos Szeredi <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 29 13:19:54 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jan 30 08:26:45 2007 -0800

    [PATCH] fuse: fix bug in control filesystem mount
    The BUG in fuse_ctl_add_dentry() could be triggered if the control
    filesystem was unmounted and mounted again while one or more fuse
    filesystems were present.
    The fix is to reset the dentry counter in fuse_ctl_kill_sb().
    Bug reported by Florent Mertens.
    Signed-off-by: Miklos Szeredi <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/fuse/control.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/fs/fuse/control.c b/fs/fuse/control.c
index 8c58bd4..1794305 100644
--- a/fs/fuse/control.c
+++ b/fs/fuse/control.c
@@ -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;
        fuse_control_sb = NULL;
+       list_for_each_entry(fc, &fuse_conn_list, entry)
+               fc->ctl_ndents = 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to