Btrfs: cleanup the code of copy_nocow_pages_for_inode()
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 27 Jun 2013 10:50:59 +0000 (18:50 +0800)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 2 Jul 2013 15:50:56 +0000 (11:50 -0400)
commit826aa0a82c5b9d2c8016c02b552e8f82f5b1e660
treeabab9acde3b519854bcf47becb02df64546bc5dd
parent26b258919006fc2d76a50b8247d7dea73207b583
Btrfs: cleanup the code of copy_nocow_pages_for_inode()

- It make no sense that we continue to do something after the error
  happened, just go back with this patch.
- remove some check of copy_nocow_pages_for_inode(), such as page check
  after write, inode check in the end of the function, because we are
  sure they exist.
- remove the unnecessary goto in the return value check of the write

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/scrub.c