f2fs: fix readdir incorrectness
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 5 Jul 2013 08:28:12 +0000 (17:28 +0900)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Jul 2013 09:35:48 +0000 (13:35 +0400)
In the previous Al Viro's readdir patch set, there occurs a bug when
running
xfstest: 006 as follows.

[Error output]
alpha size = 4, name length = 6, total files = 4096, nproc=1
1023 files created
rm: cannot remove `/mnt/f2fs/permname.15150/a': Directory not empty

[Correct output]
alpha size = 4, name length = 6, total files = 4096, nproc=1
4097 files created

This bug is due to the misupdate of directory position in ctx.
So, this patch fixes this.

[AV: fixed a braino]

CC: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

No differences found
This page took 0.024907 seconds and 5 git commands to generate.