aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-09-10 19:58:16 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-09-10 19:58:16 -0400
commit86479a04eef8f304a13aeb8b64bcc8e506a68268 (patch)
treecda7e66d469bcdc2f41144ea91405aeb96d1f777 /fs/btrfs/disk-io.h
parent8e21528f87854314792aaef4d279bc9e5a9be997 (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.h2
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 @@
26enum btrfs_bh_state_bits { 26enum 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};
30BUFFER_FNS(Checked, checked); 31BUFFER_FNS(Checked, checked);
31BUFFER_FNS(Defrag, defrag); 32BUFFER_FNS(Defrag, defrag);
33BUFFER_FNS(DefragDone, defrag_done);
32 34
33static inline struct btrfs_node *btrfs_buffer_node(struct buffer_head *bh) 35static inline struct btrfs_node *btrfs_buffer_node(struct buffer_head *bh)
34{ 36{