Skip to content

jffs2: fixes for file creation failed halfway

Hou Tao linux-mtd lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2jffs2: reset pino_nlink to 0 when inode creation failedfs/jffs2/dir.c+24 -40 replies
2/2jffs2: handle INO_STATE_CLEARING in jffs2_do_read_inode()fs/jffs2/readinode.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] jffs2: fixes for file creation failed halfway

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(-)
Signature · 1 line
2.16.2.dirty