]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: Default to 8k max packed tails
authorChris Mason <chris.mason@oracle.com>
Fri, 19 Oct 2007 13:22:41 +0000 (09:22 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/file.c

index 74fec6b83a8b2fce59b63a1e5a9a02c9cfded6f4..54967099a8eb69fdc5bb3af1b1aefe4606b5c943 100644 (file)
@@ -2380,7 +2380,7 @@ int btrfs_del_item(struct btrfs_trans_handle *trans, struct btrfs_root *root,
                }
 
                /* delete the leaf if it is mostly empty */
-               if (0 && used < BTRFS_LEAF_DATA_SIZE(root) / 3) {
+               if (used < BTRFS_LEAF_DATA_SIZE(root) / 3) {
                        /* push_leaf_left fixes the path.
                         * make sure the path still points to our leaf
                         * for possible call to del_ptr below
index 1af2b6534dadd190db5585ad67e9afacadf93401..4aacf99bd97f822fcf64b44c09814d7969db0181 100644 (file)
@@ -289,7 +289,7 @@ static int dirty_and_release_pages(struct btrfs_trans_handle *trans,
         */
        inline_size = end_pos;
        if (isize >= BTRFS_MAX_INLINE_DATA_SIZE(root) ||
-           inline_size > 16384 ||
+           inline_size > 8192 ||
            inline_size >= BTRFS_MAX_INLINE_DATA_SIZE(root)) {
                u64 last_end;