/*1* Copyright (C) 2008 Oracle. All rights reserved.2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public5* License v2 as published by the Free Software Foundation.6*7* This program is distributed in the hope that it will be useful,8* but WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU10* General Public License for more details.11*12* You should have received a copy of the GNU General Public13* License along with this program; if not, write to the14* Free Software Foundation, Inc., 59 Temple Place - Suite 330,15* Boston, MA 021110-1307, USA.16*/1718#ifndef __BTRFS_LOCKING_19#define __BTRFS_LOCKING_2021int btrfs_tree_lock(struct extent_buffer *eb);22int btrfs_tree_unlock(struct extent_buffer *eb);23int btrfs_try_spin_lock(struct extent_buffer *eb);2425void btrfs_set_lock_blocking(struct extent_buffer *eb);26void btrfs_clear_lock_blocking(struct extent_buffer *eb);27void btrfs_assert_tree_locked(struct extent_buffer *eb);28#endif293031