Re: [Ocfs2-devel] [PATCH v2] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread Jeff Liu
On 05/30/2013 12:49 PM, Joseph Qi wrote: > 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 Reviewed-by: Jie Liu > --- > fs/ocfs2/namei.c |6 +++--- >

[Ocfs2-devel] [PATCH v2] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread Joseph Qi
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 --- fs/ocfs2/namei.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ocfs2/namei.c b/f

Re: [Ocfs2-devel] [PATCH] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread Joseph Qi
You are right. Thanks for your review comments. I will do the corresponding modification and resend the patch. On 2013/5/29 18:17, Jeff Liu wrote: > On 05/29/2013 04:12 PM, shencanquan wrote: > >> On 2013/5/29 15:57, Jeff Liu wrote: >>> Thanks for your patch, Joseph. >>> >>> On 05/29/2013 10:42 A

Re: [Ocfs2-devel] [PATCH] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread Jeff Liu
On 05/29/2013 04:12 PM, shencanquan wrote: > On 2013/5/29 15:57, Jeff Liu wrote: >> Thanks for your patch, Joseph. >> >> On 05/29/2013 10:42 AM, Joseph Qi wrote: >> >>> 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 t

Re: [Ocfs2-devel] [PATCH] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread shencanquan
On 2013/5/29 15:57, Jeff Liu wrote: > Thanks for your patch, Joseph. > > On 05/29/2013 10:42 AM, Joseph Qi wrote: > >> 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:

Re: [Ocfs2-devel] [PATCH] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread Jeff Liu
Thanks for your patch, Joseph. On 05/29/2013 10:42 AM, Joseph Qi wrote: > 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 > --- > fs/ocfs2/namei.c |6 ++

Re: [Ocfs2-devel] [PATCH] ocfs2: should not use le32_add_cpu to set ocfs2_dinode i_flags

2013-05-29 Thread shencanquan
On 2013/5/29 10:42, Joseph Qi wrote: > 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. I think it should be use bitwise and or operation, because one bit stand for one meaning. > > Signed-o