]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 May 2009 23:32:57 +0000 (16:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 May 2009 23:32:57 +0000 (16:32 -0700)
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
  fuse: destroy bdi on error

1  2 
fs/fuse/inode.c

diff --combined fs/fuse/inode.c
index d1bc4d33ccbcec0231ceab45e7563e8c73da9009,75ca5ac603aedf71f2705effcdddfa4c11445b1d..91f7c85f1ffd7e52f8aa9d61c6f309cd8ed5bf42
@@@ -19,7 -19,6 +19,7 @@@
  #include <linux/random.h>
  #include <linux/sched.h>
  #include <linux/exportfs.h>
 +#include <linux/smp_lock.h>
  
  MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>");
  MODULE_DESCRIPTION("Filesystem in Userspace");
@@@ -260,9 -259,7 +260,9 @@@ struct inode *fuse_iget(struct super_bl
  
  static void fuse_umount_begin(struct super_block *sb)
  {
 +      lock_kernel();
        fuse_abort_conn(get_fuse_conn_super(sb));
 +      unlock_kernel();
  }
  
  static void fuse_send_destroy(struct fuse_conn *fc)
@@@ -911,6 -908,7 +911,7 @@@ static int fuse_fill_super(struct super
   err_put_root:
        dput(root_dentry);
   err_put_conn:
+       bdi_destroy(&fc->bdi);
        fuse_conn_put(fc);
   err_fput:
        fput(file);