yaffs: Fix readdir hang.
authorCharles Manning <cdhmanning@gmail.com>
Mon, 16 Nov 2009 18:49:32 +0000 (07:49 +1300)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:09:12 +0000 (15:09 -0800)
commitef330d560d9c3bb66ab1031af243b3171bba219f
treeb10f1f170b54c011a214aa20f71a82e0377e691c
parent75e82381df19bcb8bf6681f3fe1a2a8360e6cddc
yaffs: Fix readdir hang.

This aproach uses a search context iterator to allow yaffs to be
unlocked during the filldir. The search context stores the next
object to visited. If changes to the directory (ie unlinks) cause
the directory to be modified then a callback moves the iterator
to the next object if need be, thus preventing the iterator from
being corrupted.

Change-Id: Ia4735e42732f03a396ced7275e33facdc4f1beac
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
fs/yaffs2/yaffs_fs.c
fs/yaffs2/yaffs_guts.h