1. 14 Jul, 2011 3 commits
    • Mark Fasheh's avatar
      btrfs: Don't BUG_ON alloc_path errors in btrfs_truncate_inode_items · 0eb0e19c
      Mark Fasheh authored
      I moved the path allocation up a few lines to the top of the function so
      that we couldn't get into the state where we've dropped delayed items and
      the extent cache but fail due to -ENOMEM.
      Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
      0eb0e19c
    • Mark Fasheh's avatar
      btrfs: Don't BUG_ON alloc_path errors in replay_one_buffer() · 1e5063d0
      Mark Fasheh authored
      The two ->process_func call sites in tree-log.c which were ignoring a return
      code have also been updated to gracefully exit as well.
      Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
      1e5063d0
    • Mark Fasheh's avatar
      btrfs: don't BUG_ON btrfs_alloc_path() errors · d8926bb3
      Mark Fasheh authored
      This patch fixes many callers of btrfs_alloc_path() which BUG_ON allocation
      failure. All the sites that are fixed in this patch were checked by me to
      be fairly trivial to fix because of at least one of two criteria:
      
       - Callers of the function catch errors from it already so bubbling the
         error up will be handled.
       - Callers of the function might BUG_ON any nonzero return code in which
         case there is no behavior changed (but we still got to remove a BUG_ON)
      
      The following functions were updated:
      
      btrfs_lookup_extent, alloc_reserved_tree_block, btrfs_remove_block_group,
      btrfs_lookup_csums_range, btrfs_csum_file_blocks, btrfs_mark_extent_written,
      btrfs_inode_by_name, btrfs_new_inode, btrfs_symlink,
      insert_reserved_file_extent, and run_delalloc_nocow
      Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
      d8926bb3
  2. 12 Jul, 2011 8 commits
  3. 11 Jul, 2011 21 commits
  4. 10 Jul, 2011 8 commits