Skip to content

Commit

Permalink
fat: expand a slightly out-of-date comment
Browse files Browse the repository at this point in the history
The file namei.c seems to have been renamed to namei_msdos.c, so I decided
to update the comment with the correct name, and expand it a bit to tell
the reader what to look for.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mihir Mehta <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
airbornemihir authored and torvalds committed Oct 31, 2018
1 parent 21bfc83 commit eceb890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/fat/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ static int fat_parse_short(struct super_block *sb,
}

memcpy(work, de->name, sizeof(work));
/* see namei.c, msdos_format_name */
/* For an explanation of the special treatment of 0x05 in
* filenames, see msdos_format_name in namei_msdos.c
*/
if (work[0] == 0x05)
work[0] = 0xE5;

Expand Down

0 comments on commit eceb890

Please sign in to comment.