]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: free csums when we're done scrubbing an extent
authorJosef Bacik <jbacik@fusionio.com>
Mon, 10 Jun 2013 12:59:04 +0000 (12:59 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 1 Jul 2013 12:52:28 +0000 (08:52 -0400)
commite00b0b26f7921938d48a20f2a2f983dd607aa698
treed27bc2170fc83f70854ad4b887fb9eacfe863f26
parent714240ec168893d3a9a0f18a4929d16a307fc584
Btrfs: free csums when we're done scrubbing an extent

A user reported scrub taking up an unreasonable amount of ram as it ran.  This
is because we lookup the csums for the extent we're scrubbing but don't free it
up until after we're done with the scrub, which means we can take up a whole lot
of ram.  This patch fixes this by dropping the csums once we're done with the
extent we've scrubbed.  The user reported this to fix their problem.  Thanks,

Reported-and-tested-by: Remco Hosman <remco@hosman.xs4all.nl>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/scrub.c