Btrfs: fix wrong return value of btrfs_wait_for_commit()
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 26 Nov 2012 08:42:07 +0000 (08:42 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:08 +0000 (20:46 -0500)
commit8cd2807f79b73ef2d8c1cb6b3732dc5758ac7212
treecc743e41c7cb92d900abeb2727e7df7c48dff4e7
parentff7c1d33551862c86f7737fe88edc3e499d291e6
Btrfs: fix wrong return value of btrfs_wait_for_commit()

If the id of the existed transaction is more than the one we specified, it
means the specified transaction was commited, so we should return 0, not
EINVAL.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/transaction.c