mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fs: jffs2: remove slab cache substitute with malloc
@ 2021-11-29 12:45 Holger Assmann
  2021-11-29 12:45 ` [PATCH v2 1/2] fs: jffs2: introduce reference counting at probe Holger Assmann
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Holger Assmann @ 2021-11-29 12:45 UTC (permalink / raw)
  To: barebox; +Cc: Holger Assmann

This series aimes to handle a bug in the Barebox jffs2 driver where the
system crashes once a second unmounting is performed when more than one
jffs2 file system were mounted at the same time at one point.

- The first patch "introduce reference counting at probe" solves the
  initial issue.

- The second patch "remove unnecessary slab cache structure" performs a
  cleanup on the respective code with the opportunity for simplification
  being taken.

Signed-off-by: Holger Assmann <h.assmann@pengutronix.de>

---

This series is a v2 of a former single commit now split up into two for
clarity reasons.

changes v1 -> v2:

   - split up v1 patch into two distinct patches
   - reworded commit messages

   by Ahmad Fatoum <a.fatoum@pengutronix.de>:
   - bugfix: perform jffs2_fill_super() with every probe() again
   - bugfix: removed unfunctional if-branch in probe()
   - use sizeof(*ret) instead of hardcoding the size in malloc calls

   by Sascha Hauer <s.hauer@pengutronix.de>:
   - additional infornation for commit messages added

---

 fs/jffs2/fs.c       |  32 +++++------
 fs/jffs2/malloc.c   | 131 +++++++-------------------------------------
 fs/jffs2/nodelist.h |   2 -
 3 files changed, 35 insertions(+), 130 deletions(-)

-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


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

end of thread, other threads:[~2021-11-30 10:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 12:45 [PATCH v2 0/2] fs: jffs2: remove slab cache substitute with malloc Holger Assmann
2021-11-29 12:45 ` [PATCH v2 1/2] fs: jffs2: introduce reference counting at probe Holger Assmann
2021-11-29 12:45 ` [PATCH v2 2/2] fs: jffs2: remove unnecessary slab cache structure Holger Assmann
2021-11-30 10:29   ` Ahmad Fatoum
2021-11-30 10:41     ` Sascha Hauer
2021-11-30  9:58 ` [PATCH v2 0/2] fs: jffs2: remove slab cache substitute with malloc Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox