Merge tag 'upstream-3.9-rc6' of git://git.infradead.org/linux-ubifs
Pull UBIFS fix from Artem Bityutskiy: "Make the space fixup feature work in the case when the file-system is first mounted R/O and then remounted R/W." * tag 'upstream-3.9-rc6' of git://git.infradead.org/linux-ubifs: UBIFS: make space fixup work in the remount case
This commit is contained in:
@@ -1568,6 +1568,12 @@ static int ubifs_remount_rw(struct ubifs_info *c)
|
|||||||
c->remounting_rw = 1;
|
c->remounting_rw = 1;
|
||||||
c->ro_mount = 0;
|
c->ro_mount = 0;
|
||||||
|
|
||||||
|
if (c->space_fixup) {
|
||||||
|
err = ubifs_fixup_free_space(c);
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
err = check_free_space(c);
|
err = check_free_space(c);
|
||||||
if (err)
|
if (err)
|
||||||
goto out;
|
goto out;
|
||||||
@@ -1684,12 +1690,6 @@ static int ubifs_remount_rw(struct ubifs_info *c)
|
|||||||
err = dbg_check_space_info(c);
|
err = dbg_check_space_info(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->space_fixup) {
|
|
||||||
err = ubifs_fixup_free_space(c);
|
|
||||||
if (err)
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
mutex_unlock(&c->umount_mutex);
|
mutex_unlock(&c->umount_mutex);
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user