]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: ensure an entire eb is written at once
authorJosef Bacik <josef@redhat.com>
Tue, 13 Mar 2012 13:38:00 +0000 (09:38 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 26 Mar 2012 21:04:23 +0000 (17:04 -0400)
commit448f4d0fbee25422fa5b23e23429fc2b48180c23
tree1963e5420071e70274bf77c05373dabd43bac675
parent48376aa3ce0f4f97d3e7ec00f0c6808160fa548e
Btrfs: ensure an entire eb is written at once

This patch simplifies how we track our extent buffers.  Previously we could exit
writepages with only having written half of an extent buffer, which meant we had
to track the state of the pages and the state of the extent buffers differently.
Now we only read in entire extent buffers and write out entire extent buffers,
this allows us to simply set bits in our bflags to indicate the state of the eb
and we no longer have to do things like track uptodate with our iotree.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c