With the series paths with trailing periods like '/foo/a...' do no lead to creating files and directories with invalid names.
Duplicate code is carved out into a new function. Patch 1/4 is resent to indicate import sequence. Heinrich Schuchardt (4): fs: fat: usage basename in file_fat_write_at, fat_mkdir fs: fat: must not write directory '.' and '..' fs: fat: carve out fat_create_dir_entry() fs: fat: remove trailing periods from long name fs/fat/fat_write.c | 131 ++++++++++++++++++++------------------------- 1 file changed, 57 insertions(+), 74 deletions(-) -- 2.29.2