Get rid of BTRFS_I(inode)->index and use local vars instead
authorChris Mason <chris.mason@oracle.com>
Tue, 5 Aug 2008 15:18:09 +0000 (11:18 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:06 +0000 (11:04 -0400)
commit00e4e6b33a0f78aab4b788d6d31c884fd8bf88da
tree726c1b05385f15566aa5c14ff694870f6eb6def2
parent7d2b4daa67379960477568abda62b8ba9ee3a8aa
Get rid of BTRFS_I(inode)->index and use local vars instead

rename and link don't always have a lock on the source inode, and
our use of a per-inode index variable was racy.  This changes things to
store the index in a local variable instead.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/inode.c