]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 3 Jul 2013 22:00:48 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:23 +0000 (16:07 -0700)
commit13eb98874c837b4ca0cb2db6a4fe3551e51b7632
tree269e356a59d6928b903448a8a020b9c8f21b4bf4
parent22ab9014bfdaf97449759aef946871aabe78bb40
ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

If we use le32_add_cpu to set ocfs2_dinode i_flags, it may lead to the
corresponding flag corrupted.  So we should change it to bitwise and/or
operation.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: shencanquan <shencanquan@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/namei.c