mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
btrfs: replace unnecessary goto with direct return at cow_file_range()
The 'goto out' in cow_file_range() in the exit block are not necessary and jump back. Replace them with return, while still keeping 'goto out' in the main code. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> [ keep goto in the main code, update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
71aa147b4d
commit
aaafa1ebd6
@ -1413,7 +1413,7 @@ out_unlock:
|
|||||||
page_ops);
|
page_ops);
|
||||||
start += cur_alloc_size;
|
start += cur_alloc_size;
|
||||||
if (start >= end)
|
if (start >= end)
|
||||||
goto out;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1425,7 +1425,7 @@ out_unlock:
|
|||||||
extent_clear_unlock_delalloc(inode, start, end, locked_page,
|
extent_clear_unlock_delalloc(inode, start, end, locked_page,
|
||||||
clear_bits | EXTENT_CLEAR_DATA_RESV,
|
clear_bits | EXTENT_CLEAR_DATA_RESV,
|
||||||
page_ops);
|
page_ops);
|
||||||
goto out;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user