diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0052-ocfs-rl_used-breakage-on-big-endian.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0052-ocfs-rl_used-breakage-on-big-endian.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0052-ocfs-rl_used-breakage-on-big-endian.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0052-ocfs-rl_used-breakage-on-big-endian.patch new file mode 100644 index 00000000..872b4229 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0052-ocfs-rl_used-breakage-on-big-endian.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From 88f1278427aa9c75c6b4c7f59b160a9a29ae8f17 Mon Sep 17 00:00:00 2001 | ||
2 | From: Al Viro <viro@zeniv.linux.org.uk> | ||
3 | Date: Fri, 13 Apr 2012 12:27:11 -0400 | ||
4 | Subject: [PATCH 052/165] ocfs: ->rl_used breakage on big-endian | ||
5 | |||
6 | commit e1bf4cc620fd143766ddfcee3b004a1d1bb34fd0 upstream. | ||
7 | |||
8 | it's le16, not le32 or le64... | ||
9 | |||
10 | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> | ||
11 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
12 | --- | ||
13 | fs/ocfs2/refcounttree.c | 8 ++++---- | ||
14 | 1 files changed, 4 insertions(+), 4 deletions(-) | ||
15 | |||
16 | diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c | ||
17 | index a7b7217..bc90ebc 100644 | ||
18 | --- a/fs/ocfs2/refcounttree.c | ||
19 | +++ b/fs/ocfs2/refcounttree.c | ||
20 | @@ -1468,7 +1468,7 @@ static int ocfs2_divide_leaf_refcount_block(struct buffer_head *ref_leaf_bh, | ||
21 | |||
22 | trace_ocfs2_divide_leaf_refcount_block( | ||
23 | (unsigned long long)ref_leaf_bh->b_blocknr, | ||
24 | - le32_to_cpu(rl->rl_count), le32_to_cpu(rl->rl_used)); | ||
25 | + le32_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); | ||
26 | |||
27 | /* | ||
28 | * XXX: Improvement later. | ||
29 | @@ -2411,7 +2411,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb, | ||
30 | rb = (struct ocfs2_refcount_block *) | ||
31 | prev_bh->b_data; | ||
32 | |||
33 | - if (le64_to_cpu(rb->rf_records.rl_used) + | ||
34 | + if (le16_to_cpu(rb->rf_records.rl_used) + | ||
35 | recs_add > | ||
36 | le16_to_cpu(rb->rf_records.rl_count)) | ||
37 | ref_blocks++; | ||
38 | @@ -2476,7 +2476,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb, | ||
39 | if (prev_bh) { | ||
40 | rb = (struct ocfs2_refcount_block *)prev_bh->b_data; | ||
41 | |||
42 | - if (le64_to_cpu(rb->rf_records.rl_used) + recs_add > | ||
43 | + if (le16_to_cpu(rb->rf_records.rl_used) + recs_add > | ||
44 | le16_to_cpu(rb->rf_records.rl_count)) | ||
45 | ref_blocks++; | ||
46 | |||
47 | @@ -3629,7 +3629,7 @@ int ocfs2_refcounted_xattr_delete_need(struct inode *inode, | ||
48 | * one will split a refcount rec, so totally we need | ||
49 | * clusters * 2 new refcount rec. | ||
50 | */ | ||
51 | - if (le64_to_cpu(rb->rf_records.rl_used) + clusters * 2 > | ||
52 | + if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > | ||
53 | le16_to_cpu(rb->rf_records.rl_count)) | ||
54 | ref_blocks++; | ||
55 | |||
56 | -- | ||
57 | 1.7.7.6 | ||
58 | |||