Merge branch 'for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Oct 2016 00:44:56 +0000 (17:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Oct 2016 00:44:56 +0000 (17:44 -0700)
Pull btrfs fixes from Chris Mason:
 "Some fixes from Omar and Dave Sterba for our new free space tree.

  This isn't heavily used yet, but as we move toward making it the new
  default we wanted to nail down an endian bug"

* 'for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
  btrfs: tests: uninline member definitions in free_space_extent
  btrfs: tests: constify free space extent specs
  Btrfs: expand free space tree sanity tests to catch endianness bug
  Btrfs: fix extent buffer bitmap tests on big-endian systems
  Btrfs: catch invalid free space trees
  Btrfs: fix mount -o clear_cache,space_cache=v2
  Btrfs: fix free space tree bitmaps on big-endian systems

1  2 
fs/btrfs/ctree.h

diff --combined fs/btrfs/ctree.h
@@@ -252,7 -252,8 +252,8 @@@ struct btrfs_super_block 
  #define BTRFS_FEATURE_COMPAT_SAFE_CLEAR               0ULL
  
  #define BTRFS_FEATURE_COMPAT_RO_SUPP                  \
-       (BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE)
+       (BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE |      \
+        BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID)
  
  #define BTRFS_FEATURE_COMPAT_RO_SAFE_SET      0ULL
  #define BTRFS_FEATURE_COMPAT_RO_SAFE_CLEAR    0ULL
@@@ -3180,6 -3181,7 +3181,6 @@@ int btrfs_prealloc_file_range_trans(str
                                    struct btrfs_trans_handle *trans, int mode,
                                    u64 start, u64 num_bytes, u64 min_size,
                                    loff_t actual_len, u64 *alloc_hint);
 -int btrfs_inode_check_errors(struct inode *inode);
  extern const struct dentry_operations btrfs_dentry_operations;
  #ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
  void btrfs_test_inode_set_ops(struct inode *inode);