| .. | .. |
|---|
| 454 | 454 | |
|---|
| 455 | 455 | static inline __u32 xattr_hash(const char *msg, int len) |
|---|
| 456 | 456 | { |
|---|
| 457 | + /* |
|---|
| 458 | + * csum_partial() gives different results for little-endian and |
|---|
| 459 | + * big endian hosts. Images created on little-endian hosts and |
|---|
| 460 | + * mounted on big-endian hosts(and vice versa) will see csum mismatches |
|---|
| 461 | + * when trying to fetch xattrs. Treating the hash as __wsum_t would |
|---|
| 462 | + * lower the frequency of mismatch. This is an endianness bug in |
|---|
| 463 | + * reiserfs. The return statement would result in a sparse warning. Do |
|---|
| 464 | + * not fix the sparse warning so as to not hide a reminder of the bug. |
|---|
| 465 | + */ |
|---|
| 457 | 466 | return csum_partial(msg, len, 0); |
|---|
| 458 | 467 | } |
|---|
| 459 | 468 | |
|---|