summaryrefslogtreecommitdiff
path: root/fs/utimes.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-11-01 23:25:56 +0300
committerDavid Woodhouse <dwmw2@infradead.org>2007-11-01 23:25:56 +0300
commit15953580e79b58caefb107e77f218e009b9992e6 (patch)
treee2c51dacd42f4e575ed2e824a295f19df177649d /fs/utimes.c
parentd10a39d1a580db005d206fb6527a60fd9800c9fd (diff)
downloadlinux-15953580e79b58caefb107e77f218e009b9992e6.tar.xz
[JFFS2] Improve getdents vs. f_pos handling on NOR flash.
Commit a491486a2087ac3dfc00efb4f838c8d684afaf54 started obliterating dirents directly on the medium, when jffs2_can_mark_obsolete(). Removing them immediately from the f->dents list, however, screws up handling of f_pos within a directory -- because the offset is equivalent to the number of entries through the list we are, and the existence of deletion dirents served to provide 'placeholders' for unlinked entries. Now, 'rm -r' doesn't even manage to unlink everything in the directory. Revert to keeping 'deletion' dirents in the list, at least in memory even though we no longer write anything to the medium. Spotted, debugged and mostly fixed by Joakim Tjernlund Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/utimes.c')
0 files changed, 0 insertions, 0 deletions