Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs...
authorChris Mason <chris.mason@fusionio.com>
Wed, 20 Feb 2013 19:05:45 +0000 (14:05 -0500)
committerChris Mason <chris.mason@fusionio.com>
Wed, 20 Feb 2013 19:05:45 +0000 (14:05 -0500)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Conflicts:
fs/btrfs/disk-io.c

1  2 
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/ordered-data.h
include/uapi/linux/Kbuild

@@@ -3466,11 -3484,11 +3484,11 @@@ static void __btrfs_btree_balance_dirty
        if (flush_delayed)
                btrfs_balance_delayed_items(root);
  
-       num_dirty = root->fs_info->dirty_metadata_bytes;
-       if (num_dirty > thresh) {
+       ret = percpu_counter_compare(&root->fs_info->dirty_metadata_bytes,
+                                    BTRFS_DIRTY_METADATA_THRESH);
+       if (ret > 0) {
 -              balance_dirty_pages_ratelimited_nr(
 -                                 root->fs_info->btree_inode->i_mapping, 1);
 +              balance_dirty_pages_ratelimited(
 +                                 root->fs_info->btree_inode->i_mapping);
        }
        return;
  }
Simple merge
diff --cc fs/btrfs/file.c
Simple merge
Simple merge
Simple merge
@@@ -76,9 -76,11 +76,11 @@@ struct btrfs_ordered_sum 
  
  #define BTRFS_ORDERED_IOERR 6 /* We had an io error when writing this out */
  
 -#define BTRFS_ORDERED_UPDATED_ISIZE 7 /* indicates wether this ordered extent
 +#define BTRFS_ORDERED_UPDATED_ISIZE 7 /* indicates whether this ordered extent
                                       * has done its due diligence in updating
                                       * the isize. */
+ #define BTRFS_ORDERED_LOGGED_CSUM 8 /* We've logged the csums on this ordered
+                                      ordered extent */
  
  struct btrfs_ordered_extent {
        /* logical offset in the file */
Simple merge