diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-01-18 10:54:22 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:59 -0400 |
commit | e18e4809b10e6c9efb5fe10c1ddcb4ebb690d517 (patch) | |
tree | c8419f7fde6690cd352252af89295511650e3707 /fs/btrfs/ctree.h | |
parent | 04005cc7a1feef94237204566ccac38571af7991 (diff) |
Btrfs: Add mount -o ssd, which includes optimizations for seek free storage
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 fa65fe027e45..7a588ba2b747 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -351,6 +351,7 @@ struct btrfs_fs_info { | |||
351 | spinlock_t delalloc_lock; | 351 | spinlock_t delalloc_lock; |
352 | spinlock_t new_trans_lock; | 352 | spinlock_t new_trans_lock; |
353 | u64 delalloc_bytes; | 353 | u64 delalloc_bytes; |
354 | u64 last_alloc; | ||
354 | }; | 355 | }; |
355 | /* | 356 | /* |
356 | * in ram representation of the tree. extent_root is used for all allocations | 357 | * in ram representation of the tree. extent_root is used for all allocations |
@@ -444,6 +445,7 @@ struct btrfs_root { | |||
444 | #define BTRFS_MOUNT_NODATASUM (1 << 0) | 445 | #define BTRFS_MOUNT_NODATASUM (1 << 0) |
445 | #define BTRFS_MOUNT_NODATACOW (1 << 1) | 446 | #define BTRFS_MOUNT_NODATACOW (1 << 1) |
446 | #define BTRFS_MOUNT_NOBARRIER (1 << 2) | 447 | #define BTRFS_MOUNT_NOBARRIER (1 << 2) |
448 | #define BTRFS_MOUNT_SSD (1 << 3) | ||
447 | 449 | ||
448 | #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) | 450 | #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) |
449 | #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) | 451 | #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) |