mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
UBIFS: remove unnecessary check
Remove the "if (c->lhead_offs == 0)" check because is unnecessary, since at that point the log head offset is guaranteed to be zero due to the previous operation. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
parent
07e19dff63
commit
f1cb705acc
@ -407,12 +407,10 @@ int ubifs_log_start_commit(struct ubifs_info *c, int *ltail_lnum)
|
|||||||
c->lhead_offs = 0;
|
c->lhead_offs = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->lhead_offs == 0) {
|
/* Must ensure next LEB has been unmapped */
|
||||||
/* Must ensure next LEB has been unmapped */
|
err = ubifs_leb_unmap(c, c->lhead_lnum);
|
||||||
err = ubifs_leb_unmap(c, c->lhead_lnum);
|
if (err)
|
||||||
if (err)
|
goto out;
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
len = ALIGN(len, c->min_io_size);
|
len = ALIGN(len, c->min_io_size);
|
||||||
dbg_log("writing commit start at LEB %d:0, len %d", c->lhead_lnum, len);
|
dbg_log("writing commit start at LEB %d:0, len %d", c->lhead_lnum, len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user