mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 01:19:39 +07:00
f2fs: remove needless condition check
This patch removes needless condition variable. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
0ab1435631
commit
b483fadf7e
@ -1477,13 +1477,9 @@ static int prepare_write_begin(struct f2fs_sb_info *sbi,
|
|||||||
if (f2fs_lookup_extent_cache(inode, index, &ei)) {
|
if (f2fs_lookup_extent_cache(inode, index, &ei)) {
|
||||||
dn.data_blkaddr = ei.blk + index - ei.fofs;
|
dn.data_blkaddr = ei.blk + index - ei.fofs;
|
||||||
} else {
|
} else {
|
||||||
bool restart = false;
|
|
||||||
|
|
||||||
/* hole case */
|
/* hole case */
|
||||||
err = get_dnode_of_data(&dn, index, LOOKUP_NODE);
|
err = get_dnode_of_data(&dn, index, LOOKUP_NODE);
|
||||||
if (err || (!err && dn.data_blkaddr == NULL_ADDR))
|
if (err || (!err && dn.data_blkaddr == NULL_ADDR)) {
|
||||||
restart = true;
|
|
||||||
if (restart) {
|
|
||||||
f2fs_put_dnode(&dn);
|
f2fs_put_dnode(&dn);
|
||||||
f2fs_lock_op(sbi);
|
f2fs_lock_op(sbi);
|
||||||
locked = true;
|
locked = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user