diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-09-10 19:58:36 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-09-10 19:58:36 -0400 |
commit | 011410bd859a481a335d7db1fb559542c5663fd5 (patch) | |
tree | 39b7d65352f49abe4eeb9cabd3b19d1b50faf9a2 /fs/btrfs/ctree.h | |
parent | 86479a04eef8f304a13aeb8b64bcc8e506a68268 (diff) |
Btrfs: Add more synchronization before creating a snapshot
File data checksums are only done during writepage, so we have to make sure
all pages are written when the snapshot is taken. This also adds some
locking so that new writes don't race in and add new dirty pages.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index cd75c906048f..03e1c4ad341b 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -333,6 +333,7 @@ struct btrfs_root { | |||
333 | struct inode *inode; | 333 | struct inode *inode; |
334 | struct kobject root_kobj; | 334 | struct kobject root_kobj; |
335 | struct completion kobj_unregister; | 335 | struct completion kobj_unregister; |
336 | struct rw_semaphore snap_sem; | ||
336 | u64 objectid; | 337 | u64 objectid; |
337 | u64 last_trans; | 338 | u64 last_trans; |
338 | u32 blocksize; | 339 | u32 blocksize; |