Searched refs:snapshot_lock (Results 1 – 5 of 5) sorted by relevance
1496 if (!nowait && !btrfs_drew_try_write_lock(&root->snapshot_lock)) in check_can_nocow()1527 btrfs_drew_write_unlock(&root->snapshot_lock); in check_can_nocow()1571 btrfs_drew_write_unlock(&inode->root->snapshot_lock); in btrfs_check_nocow_unlock()
5323 btrfs_drew_write_lock(&root->snapshot_lock); in btrfs_setsize()5326 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_setsize()5332 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_setsize()5340 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_setsize()10683 if (!btrfs_drew_try_write_lock(&root->snapshot_lock)) { in btrfs_swap_activate()10841 btrfs_drew_write_unlock(&root->snapshot_lock); in btrfs_swap_activate()
1497 ret = btrfs_drew_lock_init(&root->snapshot_lock); in btrfs_init_fs_root()2181 btrfs_drew_lock_destroy(&root->snapshot_lock); in btrfs_put_root()
963 btrfs_drew_read_lock(&root->snapshot_lock); in btrfs_mksnapshot()984 btrfs_drew_read_unlock(&root->snapshot_lock); in btrfs_mksnapshot()
1229 struct btrfs_drew_lock snapshot_lock; member