Commit 8573f79d authored by Tao Ma's avatar Tao Ma Committed by Mark Fasheh

ocfs2: Fix some typos in xattr annotations.

Fix some typos in the xattr annotations.
Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
Reported-by: default avatarColy Li <coyli@suse.de>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 63fd7757
...@@ -742,12 +742,12 @@ struct ocfs2_group_desc ...@@ -742,12 +742,12 @@ struct ocfs2_group_desc
*/ */
struct ocfs2_xattr_entry { struct ocfs2_xattr_entry {
__le32 xe_name_hash; /* hash value of xattr prefix+suffix. */ __le32 xe_name_hash; /* hash value of xattr prefix+suffix. */
__le16 xe_name_offset; /* byte offset from the 1st etnry in the local __le16 xe_name_offset; /* byte offset from the 1st entry in the
local xattr storage(inode, xattr block or local xattr storage(inode, xattr block or
xattr bucket). */ xattr bucket). */
__u8 xe_name_len; /* xattr name len, does't include prefix. */ __u8 xe_name_len; /* xattr name len, does't include prefix. */
__u8 xe_type; /* the low 7 bits indicates the name prefix's __u8 xe_type; /* the low 7 bits indicate the name prefix
* type and the highest 1 bits indicate whether * type and the highest bit indicates whether
* the EA is stored in the local storage. */ * the EA is stored in the local storage. */
__le64 xe_value_size; /* real xattr value length. */ __le64 xe_value_size; /* real xattr value length. */
}; };
...@@ -766,9 +766,10 @@ struct ocfs2_xattr_header { ...@@ -766,9 +766,10 @@ struct ocfs2_xattr_header {
xattr. */ xattr. */
__le16 xh_name_value_len; /* total length of name/value __le16 xh_name_value_len; /* total length of name/value
length in this bucket. */ length in this bucket. */
__le16 xh_num_buckets; /* bucket nums in one extent __le16 xh_num_buckets; /* Number of xattr buckets
record, only valid in the in this extent record,
first bucket. */ only valid in the first
bucket. */
__le64 xh_csum; __le64 xh_csum;
struct ocfs2_xattr_entry xh_entries[0]; /* xattr entry list. */ struct ocfs2_xattr_entry xh_entries[0]; /* xattr entry list. */
}; };
...@@ -776,8 +777,8 @@ struct ocfs2_xattr_header { ...@@ -776,8 +777,8 @@ struct ocfs2_xattr_header {
/* /*
* On disk structure for xattr value root. * On disk structure for xattr value root.
* *
* It is used when one extended attribute's size is larger, and we will save it * When an xattr's value is large enough, it is stored in an external
* in an outside cluster. It will stored in a b-tree like file content. * b-tree like file data. The xattr value root points to this structure.
*/ */
struct ocfs2_xattr_value_root { struct ocfs2_xattr_value_root {
/*00*/ __le32 xr_clusters; /* clusters covered by xattr value. */ /*00*/ __le32 xr_clusters; /* clusters covered by xattr value. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment