]> 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>
Wed, 19 Jun 2013 00:05:38 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:48 +0000 (17:12 +1000)
commitd50d475f3996ba1ac9b148b84023153ad4754e79
tree320d67d80c8e6dde2e35203e6b921d932ba48bec
parent028439ce80716dffb1715b394e7b113cc27f227b
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