From: Al Viro Date: Fri, 4 Mar 2011 17:14:37 +0000 (+0000) Subject: btrfs: don't mess with i_nlink of unlocked inode in rename() X-Git-Tag: v2.6.39-rc1~19^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92986796d84ef939e304099dece32572a755b280;p=pandora-kernel.git btrfs: don't mess with i_nlink of unlocked inode in rename() old_inode is not locked; it's not safe to play with its link count. Instead of bumping it and calling btrfs_unlink_inode(), add a variant of the latter that does not do btrfs_drop_nlink()/ btrfs_update_inode(), call it instead of btrfs_inc_nlink()/ btrfs_unlink_inode() and do btrfs_update_inode() ourselves. Signed-off-by: Al Viro Signed-off-by: Chris Mason --- Reading git-diff-tree failed