2020-05-03 12:55:32

by Jonny Grant

[permalink] [raw]
Subject: /fs/ext4/ext4.h add a comment to ext4_dir_entry_2


Could a comment be added to clarify 'file_type' ?

struct ext4_dir_entry_2 {
__le32 inode; /* Inode number */
__le16 rec_len; /* Directory entry length */
__u8 name_len; /* Name length */
__u8 file_type;
char name[EXT4_NAME_LEN]; /* File name */

This what I am proposing to add:

__u8 file_type; /* See directory file type macros below */

Thank you