linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* UBIFS orphans and ro-mounts
@ 2016-07-13 12:29 Richard Weinberger
  2016-07-13 12:48 ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2016-07-13 12:29 UTC (permalink / raw)
  To: Artem Bityutskiy, Boris Brezillon; +Cc: linux-mtd@lists.infradead.org

Artem,

I wonder why UBIFS processes orphan inodes also when mounting read-only.
Depending on the workload before a power cut this can take a few seconds
and since we mount read-only the updated TNC will not written back to flash,
so upon next mount the time is again wasted.

This hurts boot performance a lot on systems where u-boot loads the kernel
from UBIFS.
u-boot always mounts UBIFS read-only.
So even when Linux mounts UBIFS rw and a powercut happens orphan processing
will happen twice.

I'd suggest calling ubifs_mount_orphans() only when we mount rw or remount to
rw.
What do you think?

Thanks,
//richard
-- 
sigma star gmbh - Eduard-Bodem-Gasse 6 - 6020 Innsbruck - Austria
ATU66964118 - FN 374287y

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-13 16:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-13 12:29 UBIFS orphans and ro-mounts Richard Weinberger
2016-07-13 12:48 ` Artem Bityutskiy
2016-07-13 12:55   ` Richard Weinberger
2016-07-13 16:21     ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).