Reorder extent back refs to differentiate file data from btree blocks
authorChris Mason <chris.mason@oracle.com>
Thu, 13 Dec 2007 16:12:45 +0000 (11:12 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Thu, 13 Dec 2007 16:12:45 +0000 (11:12 -0500)
ctree.h
mkfs.c

diff --git a/ctree.h b/ctree.h
index 780b3e4..5cb0a88 100644 (file)
--- a/ctree.h
+++ b/ctree.h
@@ -31,7 +31,7 @@ struct btrfs_trans_handle;
 #define BTRFS_EXTENT_TREE_OBJECTID 2ULL
 #define BTRFS_FS_TREE_OBJECTID 3ULL
 #define BTRFS_ROOT_TREE_DIR_OBJECTID 4ULL
-#define BTRFS_FIRST_FREE_OBJECTID 5ULL
+#define BTRFS_FIRST_FREE_OBJECTID 256ULL
 
 /*
  * we can actually store much bigger names, but lets not confuse the rest
diff --git a/mkfs.c b/mkfs.c
index fc30ca8..b49b088 100644 (file)
--- a/mkfs.c
+++ b/mkfs.c
@@ -353,9 +353,9 @@ int main(int ac, char **av)
        struct stat st;
        int ret;
        int i;
-       u32 leafsize = 8 * 1024;
+       u32 leafsize = 16 * 1024;
        u32 sectorsize = 4096;
-       u32 nodesize = 8 * 1024;
+       u32 nodesize = 16 * 1024;
        u32 stripesize = 4096;
        char *buf = malloc(sectorsize);
        char *realpath_name;