[PATCH] btrfs compression: reuse recently used workspace

From: Sergey Senozhatsky
Date: Tue Jun 24 2014 - 11:01:22 EST


Hello,

Whenever possible, find_workspace() returns the first idle workspace;
and free_workspace() puts workspace to idle list tail. Put workspace to
head of idle list instead. Hopefully, this will let to reuse most recently
used workspace and avoid workspace->mem, ->buf, ->cbuf address translations.

p.s. This patch is theoretical, no testing has been performed in order to
support this patch.

Sergey Senozhatsky (1):
btrfs compression: reuse recently used workspace

fs/btrfs/compression.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.0.0.548.ge727dec

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/