mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] jffs2: fixes for file creation failed halfway
@ 2019-02-20 10:21 Hou Tao
  2019-02-20 10:21 ` [PATCH 1/2] jffs2: reset pino_nlink to 0 when inode creation failed Hou Tao
  2019-02-20 10:21 ` [PATCH 2/2] jffs2: handle INO_STATE_CLEARING in jffs2_do_read_inode() Hou Tao
  0 siblings, 2 replies; 3+ messages in thread
From: Hou Tao @ 2019-02-20 10:21 UTC (permalink / raw)
  To: linux-mtd; +Cc: David Woodhouse, Richard Weinberger, linux-kernel, houtao1

Hi,

There are the fixes for file creation which failed halfway, the first
one is used to reclaim flash spaces had been used by the inode, and
the second one fixes a BUG assertion in jffs2_do_read_inode().

These two problems can be reproduced by concurrently creating files
until no space is left, and then removing these files, and repeating.

Comments are welcome.

Hou

Hou Tao (2):
  jffs2: reset pino_nlink to 0 when inode creation failed
  jffs2: handle INO_STATE_CLEARING in jffs2_do_read_inode()

 fs/jffs2/dir.c       | 28 ++++++++++++++++++++++++----
 fs/jffs2/readinode.c |  1 +
 2 files changed, 25 insertions(+), 4 deletions(-)

-- 
2.16.2.dirty


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

end of thread, other threads:[~2019-02-20 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-20 10:21 [PATCH 0/2] jffs2: fixes for file creation failed halfway Hou Tao
2019-02-20 10:21 ` [PATCH 1/2] jffs2: reset pino_nlink to 0 when inode creation failed Hou Tao
2019-02-20 10:21 ` [PATCH 2/2] jffs2: handle INO_STATE_CLEARING in jffs2_do_read_inode() Hou Tao

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

all inboxes | Powered by JetHome®