Searched refs:snapshot_lock (Results 1 – 5 of 5) sorted by relevance
1483 if (!nowait && !btrfs_drew_try_write_lock(&root->snapshot_lock)) in check_can_nocow()1514 btrfs_drew_write_unlock(&root->snapshot_lock); in check_can_nocow()1558 btrfs_drew_write_unlock(&inode->root->snapshot_lock); in btrfs_check_nocow_unlock()
1364 ret = btrfs_drew_lock_init(&root->snapshot_lock); in btrfs_init_fs_root()2045 btrfs_drew_lock_destroy(&root->snapshot_lock); in btrfs_put_root()
1019 btrfs_drew_read_lock(&root->snapshot_lock); in btrfs_mksnapshot()1040 btrfs_drew_read_unlock(&root->snapshot_lock); in btrfs_mksnapshot()
4873 btrfs_drew_write_lock(&root->snapshot_lock); in btrfs_setsize()4876 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_setsize()4882 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_setsize()4890 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_setsize()
1172 struct btrfs_drew_lock snapshot_lock; member