Skip to content

Commit

Permalink
Merge tag 'upstream-3.9-rc6' of git://git.infradead.org/linux-ubifs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
torvalds committed Apr 4, 2013
2 parents 014642c + 67e753c commit 22d1e6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,12 @@ static int ubifs_remount_rw(struct ubifs_info *c)
c->remounting_rw = 1;
c->ro_mount = 0;

if (c->space_fixup) {
err = ubifs_fixup_free_space(c);
if (err)
return err;
}

err = check_free_space(c);
if (err)
goto out;
Expand Down Expand Up @@ -1684,12 +1690,6 @@ static int ubifs_remount_rw(struct ubifs_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);
return err;

Expand Down

0 comments on commit 22d1e6f

Please sign in to comment.