From 0dc7c801cb396cc654640cba00b1fa89cfafc62c Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 4 Jul 2005 14:27:07 +0000 Subject: [PATCH] - don't pass "prefer mergability over length" hint to mballoc --- lustre/lvfs/fsfilt_ext3.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 58ed700..bd72e0f 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -762,8 +762,16 @@ static int ext3_ext_find_goal(struct inode *inode, struct ext3_ext_path *path, /* try to predict block placement */ if ((ex = path[depth].p_ext)) { +#if 0 + /* This prefers to eat into a contiguous extent + * rather than find an extent that the whole + * request will fit into. This can fragment data + * block allocation and prevents our lovely 1M I/Os + * from reaching the disk intact. */ + if (ex->ee_block + ex->ee_len == block) *aflags |= 1; +#endif return ex->ee_start + (block - ex->ee_block); } -- 1.8.3.1