summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2008-03-26 15:28:07 +0100
committerChris Mason2008-09-25 17:04:01 +0200
commit04160088141a6be06d5cb9e53e34076b51803ffc (patch)
tree8dc407b1fe8fced2588121e8d58450f3a8ed8807 /fs/btrfs/ctree.h
parentBtrfs: Implement raid0 when multiple devices are present (diff)
downloadkernel-qcow2-linux-04160088141a6be06d5cb9e53e34076b51803ffc.tar.gz
kernel-qcow2-linux-04160088141a6be06d5cb9e53e34076b51803ffc.tar.xz
kernel-qcow2-linux-04160088141a6be06d5cb9e53e34076b51803ffc.zip
Create a btrfs backing dev info
This allows intelligent versions of unplug and congestion functions Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index f43dfe7ffe6d..fec96ba7c23b 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -25,6 +25,7 @@
#include <linux/fs.h>
#include <linux/workqueue.h>
#include <linux/completion.h>
+#include <linux/backing-dev.h>
#include <asm/kmap_types.h>
#include "bit-radix.h"
#include "extent_io.h"
@@ -472,6 +473,7 @@ struct btrfs_fs_info {
struct block_device *__bdev;
struct super_block *sb;
struct inode *btree_inode;
+ struct backing_dev_info bdi;
spinlock_t hash_lock;
struct mutex trans_mutex;
struct mutex fs_mutex;