diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-09-10 19:58:16 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-09-10 19:58:16 -0400 |
commit | 86479a04eef8f304a13aeb8b64bcc8e506a68268 (patch) | |
tree | cda7e66d469bcdc2f41144ea91405aeb96d1f777 /fs/btrfs/disk-io.h | |
parent | 8e21528f87854314792aaef4d279bc9e5a9be997 (diff) |
Add support for defragging files via btrfsctl -d. Avoid OOM on extent tree
defrag.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index da6bb72750f2..714fa877438b 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -26,9 +26,11 @@ | |||
26 | enum btrfs_bh_state_bits { | 26 | enum btrfs_bh_state_bits { |
27 | BH_Checked = BH_PrivateStart, | 27 | BH_Checked = BH_PrivateStart, |
28 | BH_Defrag, | 28 | BH_Defrag, |
29 | BH_DefragDone, | ||
29 | }; | 30 | }; |
30 | BUFFER_FNS(Checked, checked); | 31 | BUFFER_FNS(Checked, checked); |
31 | BUFFER_FNS(Defrag, defrag); | 32 | BUFFER_FNS(Defrag, defrag); |
33 | BUFFER_FNS(DefragDone, defrag_done); | ||
32 | 34 | ||
33 | static inline struct btrfs_node *btrfs_buffer_node(struct buffer_head *bh) | 35 | static inline struct btrfs_node *btrfs_buffer_node(struct buffer_head *bh) |
34 | { | 36 | { |