summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r--fs/reiserfs/xattr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index 32d8986c26fb..b5b26d8a192c 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -450,6 +450,15 @@ fail:
450 450
451static inline __u32 xattr_hash(const char *msg, int len) 451static inline __u32 xattr_hash(const char *msg, int len)
452{ 452{
453 /*
454 * csum_partial() gives different results for little-endian and
455 * big endian hosts. Images created on little-endian hosts and
456 * mounted on big-endian hosts(and vice versa) will see csum mismatches
457 * when trying to fetch xattrs. Treating the hash as __wsum_t would
458 * lower the frequency of mismatch. This is an endianness bug in
459 * reiserfs. The return statement would result in a sparse warning. Do
460 * not fix the sparse warning so as to not hide a reminder of the bug.
461 */
453 return csum_partial(msg, len, 0); 462 return csum_partial(msg, len, 0);
454} 463}
455 464