|
@@ -1568,6 +1568,7 @@ static int ubifs_remount_rw(struct ubifs_info *c)
|
|
|
mutex_lock(&c->umount_mutex);
|
|
mutex_lock(&c->umount_mutex);
|
|
|
dbg_save_space_info(c);
|
|
dbg_save_space_info(c);
|
|
|
c->remounting_rw = 1;
|
|
c->remounting_rw = 1;
|
|
|
|
|
+ c->ro_mount = 0;
|
|
|
|
|
|
|
|
err = check_free_space(c);
|
|
err = check_free_space(c);
|
|
|
if (err)
|
|
if (err)
|
|
@@ -1676,13 +1677,13 @@ static int ubifs_remount_rw(struct ubifs_info *c)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
dbg_gen("re-mounted read-write");
|
|
dbg_gen("re-mounted read-write");
|
|
|
- c->ro_mount = 0;
|
|
|
|
|
c->remounting_rw = 0;
|
|
c->remounting_rw = 0;
|
|
|
err = dbg_check_space_info(c);
|
|
err = dbg_check_space_info(c);
|
|
|
mutex_unlock(&c->umount_mutex);
|
|
mutex_unlock(&c->umount_mutex);
|
|
|
return err;
|
|
return err;
|
|
|
|
|
|
|
|
out:
|
|
out:
|
|
|
|
|
+ c->ro_mount = 1;
|
|
|
vfree(c->orph_buf);
|
|
vfree(c->orph_buf);
|
|
|
c->orph_buf = NULL;
|
|
c->orph_buf = NULL;
|
|
|
if (c->bgt) {
|
|
if (c->bgt) {
|