summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a331ae)
raw | patch | inline | side by side (parent: 3a331ae)
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | |
Sun, 22 Nov 2020 18:24:46 +0000 (19:24 +0100) | ||
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | |
Thu, 10 Dec 2020 08:14:59 +0000 (09:14 +0100) |
For reusing deleted directory entries we have to adjust the function called
to step to the next directory entry.
This patch alone is not enough to actually reuse deleted directory entries
as the fill_dir_slot() is still called with first never used directory
entry.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
to step to the next directory entry.
This patch alone is not enough to actually reuse deleted directory entries
as the fill_dir_slot() is still called with first never used directory
entry.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat_write.c | patch | blob | history |
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 59cffef34e66e2d67720f6a5838ed3b8434f3b43..0746d73f8d0834048960807260f121f4eab25148 100644 (file)
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
flush_dir(itr);
/* allocate a cluster for more entries */
- if (!fat_itr_next(itr) && !itr->dent)
+ if (!next_dent(itr) && !itr->dent)
if ((itr->is_root && itr->fsdata->fatsize != 32) ||
new_dir_table(itr))
return -EIO;