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
@@@ -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