diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-11-22 19:24:46 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-12-10 09:14:59 +0100 |
commit | 27ed690382fd6f6e5796ec9c08693a94cfdc0f14 (patch) | |
tree | cd233a51ee5a0cae5c6d2669155514fc2f7086db /fs/fat | |
parent | 3a331aee561f4551e2e131114c416a70e91ae05f (diff) | |
download | u-boot-27ed690382fd6f6e5796ec9c08693a94cfdc0f14.tar.gz u-boot-27ed690382fd6f6e5796ec9c08693a94cfdc0f14.tar.bz2 u-boot-27ed690382fd6f6e5796ec9c08693a94cfdc0f14.zip |
fs: fat: dentry iterator for fill_dir_slot()
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>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/fat_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index 59cffef34e..0746d73f8d 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -362,7 +362,7 @@ fill_dir_slot(fat_itr *itr, const char *l_name, const char *shortname) 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; |