diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-12-08 16:40:21 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-12-08 16:40:21 -0500 |
commit | c3027eb5523d6983f12628f3fe13d8a7576db701 (patch) | |
tree | 6a912094818ff261667228a4f6d83ecc4513ac43 /fs/btrfs/btrfs_inode.h | |
parent | 934d375bacf9ea8a37fbfff5f3cf1c093f324095 (diff) |
Btrfs: Add inode sequence number for NFS and reserved space in a few structs
This adds a sequence number to the btrfs inode that is increased on
every update. NFS will be able to use that to detect when an inode has
changed, without relying on inaccurate time fields.
While we're here, this also:
Puts reserved space into the super block and inode
Adds a log root transid to the super so we can pick the newest super
based on the fsync log as well as the main transaction ID. For now
the log root transid is always zero, but that'll get fixed.
Adds a starting offset to the dev_item. This will let us do better
alignment calculations if we know the start of a partition on the disk.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 0b2e623cf421..1b9ec1ab1f68 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h | |||
@@ -49,9 +49,6 @@ struct btrfs_inode { | |||
49 | */ | 49 | */ |
50 | struct extent_io_tree io_failure_tree; | 50 | struct extent_io_tree io_failure_tree; |
51 | 51 | ||
52 | /* held while inserting checksums to avoid races */ | ||
53 | struct mutex csum_mutex; | ||
54 | |||
55 | /* held while inesrting or deleting extents from files */ | 52 | /* held while inesrting or deleting extents from files */ |
56 | struct mutex extent_mutex; | 53 | struct mutex extent_mutex; |
57 | 54 | ||
@@ -79,6 +76,9 @@ struct btrfs_inode { | |||
79 | */ | 76 | */ |
80 | u64 generation; | 77 | u64 generation; |
81 | 78 | ||
79 | /* sequence number for NFS changes */ | ||
80 | u64 sequence; | ||
81 | |||
82 | /* | 82 | /* |
83 | * transid of the trans_handle that last modified this inode | 83 | * transid of the trans_handle that last modified this inode |
84 | */ | 84 | */ |