]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix data space leak fix
authorJosef Bacik <josef@redhat.com>
Thu, 1 Oct 2009 21:10:23 +0000 (17:10 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 1 Oct 2009 21:10:23 +0000 (17:10 -0400)
commit4eced068e3bbb42fedd549aeac8837a0b9b8a3bc
treec60ab388e2b19b02fd3bbcef76498a3520f9dcbd
parent4b471ad41d966ffc8e851c69e852f70d09e83153
Btrfs: fix data space leak fix

There is a problem where page_mkwrite can be called on a dirtied page that
already has a delalloc range associated with it.  The fix is to clear any
delalloc bits for the range we are dirtying so the space accounting gets
handled properly.  This is the same thing we do in the normal write case, so we
are consistent across the board.  With this patch we no longer leak reserved
space.

Signed-off-by: Josef Bacik <jbacik@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c