diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-03-27 14:21:26 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-03-27 14:21:26 -0400 |
commit | 94598ba8d8ff066115508fb99e593d2de1ca67e1 (patch) | |
tree | 035dcae1b60f84b5620ab1a9d42b5d1fad4b4862 /fs/btrfs/ctree.h | |
parent | ea466794084f55d8fcc100711cf17923bf57e962 (diff) | |
download | lwn-94598ba8d8ff066115508fb99e593d2de1ca67e1.tar.gz lwn-94598ba8d8ff066115508fb99e593d2de1ca67e1.zip |
Btrfs: introduce common define for max number of mirrors
Readahead already has a define for the max number of mirrors. Scrub
needs such a define now, the rest of the code will need something
like this soon. Therefore the define was added to ctree.h and removed
from the readahead code.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index c2e17cd299b7..f7da8a8d13c1 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -48,6 +48,8 @@ struct btrfs_ordered_sum; #define BTRFS_MAGIC "_BHRfS_M" +#define BTRFS_MAX_MIRRORS 2 + #define BTRFS_MAX_LEVEL 8 #define BTRFS_COMPAT_EXTENT_TREE_V0 |