Merge branch 'alloc_path' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh...
authorChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:27:34 +0000 (14:27 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:27:34 +0000 (14:27 -0400)
1  2 
fs/btrfs/extent-tree.c
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/tree-log.c
fs/btrfs/volumes.c

Simple merge
Simple merge
diff --cc fs/btrfs/file.c
Simple merge
index 586cf6a438559e996e4bc7856b4bfe5a15647330,88829993db6cd816533025af04d591fad4b92034..4360ccb191b12c2f7f2b41e085209f07951fac12
@@@ -1061,9 -1070,10 +1061,10 @@@ static noinline int run_delalloc_nocow(
        u64 ino = btrfs_ino(inode);
  
        path = btrfs_alloc_path();
-       BUG_ON(!path);
+       if (!path)
+               return -ENOMEM;
  
 -      nolock = is_free_space_inode(root, inode);
 +      nolock = btrfs_is_free_space_inode(root, inode);
  
        if (nolock)
                trans = btrfs_join_transaction_nolock(root);
Simple merge
Simple merge