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)
- 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>

No differences found