]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: update to the right index of defragment
authorLiu Bo <liubo2009@cn.fujitsu.com>
Thu, 29 Mar 2012 13:57:45 +0000 (09:57 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 29 Mar 2012 13:57:45 +0000 (09:57 -0400)
commite7d85fbed88fe3e1b87a01f85696731aacb429ac
tree8bae36b522a96948be985af03073813e3b0d851f
parent806702d769260e8646439622242a0d35fe42a5aa
Btrfs: update to the right index of defragment

When we use autodefrag, we forget to update the index which indicates
the last page we've dirty.  And we'll set dirty flags on a same set of
pages again and again.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c