]> git.baikalelectronics.ru Git - kernel.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)
commit1fcf684a700e5b3ebe9354233db3ca5d5c8f0b99
tree4db44a245a5dfdd21c84d31f7b8dfaace72ef34e
parente721bdf4795be75bfae51db346657789dcda4bc0
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