]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/ocfs2-Fix-some-typos-in-xattr-annotations.patch
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ocfs2-Fix-some-typos-in-xattr-annotations.patch
1 From: Tao Ma <tao.ma@oracle.com>
2 Date: Fri, 24 Oct 2008 22:24:17 +0800
3 Subject: ocfs2: Fix some typos in xattr annotations.
4
5 Fix some typos in the xattr annotations.
6
7 Signed-off-by: Tao Ma <tao.ma@oracle.com>
8 Reported-by: Coly Li <coyli@suse.de>
9 Signed-off-by: Joel Becker <joel.becker@oracle.com>
10 Signed-off-by: Mark Fasheh <mfasheh@suse.com>
11 ---
12 fs/ocfs2/ocfs2_fs.h | 17 +++++++++--------
13 1 files changed, 9 insertions(+), 8 deletions(-)
14
15 Index: linux-2.6.27-ocfs2/fs/ocfs2/ocfs2_fs.h
16 ===================================================================
17 --- linux-2.6.27-ocfs2.orig/fs/ocfs2/ocfs2_fs.h
18 +++ linux-2.6.27-ocfs2/fs/ocfs2/ocfs2_fs.h
19 @@ -742,12 +742,12 @@ struct ocfs2_group_desc
20 */
21 struct ocfs2_xattr_entry {
22 __le32 xe_name_hash; /* hash value of xattr prefix+suffix. */
23 - __le16 xe_name_offset; /* byte offset from the 1st etnry in the local
24 + __le16 xe_name_offset; /* byte offset from the 1st entry in the
25 local xattr storage(inode, xattr block or
26 xattr bucket). */
27 __u8 xe_name_len; /* xattr name len, does't include prefix. */
28 - __u8 xe_type; /* the low 7 bits indicates the name prefix's
29 - * type and the highest 1 bits indicate whether
30 + __u8 xe_type; /* the low 7 bits indicate the name prefix
31 + * type and the highest bit indicates whether
32 * the EA is stored in the local storage. */
33 __le64 xe_value_size; /* real xattr value length. */
34 };
35 @@ -766,9 +766,10 @@ struct ocfs2_xattr_header {
36 xattr. */
37 __le16 xh_name_value_len; /* total length of name/value
38 length in this bucket. */
39 - __le16 xh_num_buckets; /* bucket nums in one extent
40 - record, only valid in the
41 - first bucket. */
42 + __le16 xh_num_buckets; /* Number of xattr buckets
43 + in this extent record,
44 + only valid in the first
45 + bucket. */
46 __le64 xh_csum;
47 struct ocfs2_xattr_entry xh_entries[0]; /* xattr entry list. */
48 };
49 @@ -776,8 +777,8 @@ struct ocfs2_xattr_header {
50 /*
51 * On disk structure for xattr value root.
52 *
53 - * It is used when one extended attribute's size is larger, and we will save it
54 - * in an outside cluster. It will stored in a b-tree like file content.
55 + * When an xattr's value is large enough, it is stored in an external
56 + * b-tree like file data. The xattr value root points to this structure.
57 */
58 struct ocfs2_xattr_value_root {
59 /*00*/ __le32 xr_clusters; /* clusters covered by xattr value. */