]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags
authorJoseph Qi <joseph.qi@huawei.com>
Fri, 7 Jun 2013 00:07:24 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:41:58 +0000 (15:41 +1000)
commit41f1899b0f6a8dfa8cb14095921e7433239dc2b3
treeafc82d8f31b211355ff9f09fe4bdf32062cf6d83
parentbcaeb9b8c7f43a36bd4eb633d0e39968ed2b5560
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>
fs/ocfs2/namei.c