]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: fix put dio bio twice when we submit dio bio fail
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 17 Jun 2014 10:58:59 +0000 (18:58 +0800)
committerChris Mason <clm@fb.com>
Tue, 19 Aug 2014 15:36:24 +0000 (08:36 -0700)
commit7a5c3c9be1059feed0e470c6dc0994dcaed4f12c
tree4db44a245a5dfdd21c84d31f7b8dfaace72ef34e
parent8d875f95da43c6a8f18f77869f2ef26e9594fecc
Btrfs: fix put dio bio twice when we submit dio bio fail

The caller of btrfs_submit_direct_hook() will put the original dio bio
when btrfs_submit_direct_hook() return a error number, so we needn't
put the original bio in btrfs_submit_direct_hook().

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c