]> 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>
Thu, 27 Jun 2013 23:51:04 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:16 +0000 (16:37 +1000)
commit11b5db277e185b1e0afc224e9ccac070256eb713
tree933ae1a395682911ac4cabd2623baa6b844aa9d2
parent1d225121e7f4ba3ed186eb4dc30cdb2e9b2c1f29
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