btrfs compression: reuse recently used workspace
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Tue, 24 Jun 2014 15:00:44 +0000 (00:00 +0900)
committerChris Mason <clm@fb.com>
Sat, 28 Jun 2014 20:48:46 +0000 (13:48 -0700)
commitc39aa7056f50fa7b49265ea35c0f3eddb7c7be68
tree4cd62c181256ed48e5a733978f08fb547970352d
parent5588383ece6127909df5b9d601d562fe5b9fe38a
btrfs compression: reuse recently used workspace

Add compression `workspace' in free_workspace() to
`idle_workspace' list head, instead of tail. So we have
better chances to reuse most recently used `workspace'.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/compression.c