linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/f2fs: atomically set inode->i_flags
       [not found] <1440383887-31795-1-git-send-email-zhenzhang.zhang@huawei.com>
@ 2015-08-24  2:41 ` Zhang Zhen
  2015-08-24  3:28   ` Zhang Zhen
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Zhen @ 2015-08-24  2:41 UTC (permalink / raw)
  To: jaegeuk.kim; +Cc: linux-f2fs-devel

According to commit 5f16f3225b06 ("ext4: atomically set inode->i_flags in
ext4_set_inode_flags()").

Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
---
 fs/f2fs/inode.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 2550868..141ca63 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -12,7 +12,6 @@
 #include <linux/f2fs_fs.h>
 #include <linux/buffer_head.h>
 #include <linux/writeback.h>
-#include <linux/bitops.h>

 #include "f2fs.h"
 #include "node.h"
@@ -34,8 +33,8 @@ void f2fs_set_inode_flags(struct inode *inode)
 		new_fl |= S_NOATIME;
 	if (flags & FS_DIRSYNC_FL)
 		new_fl |= S_DIRSYNC;
-	set_mask_bits(&inode->i_flags,
-			S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC, new_fl);
+	inode_set_flags(inode, new_fl,
+			S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC);
 }

 static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri)
-- 
1.9.1


.





------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] fs/f2fs: atomically set inode->i_flags
  2015-08-24  2:41 ` [PATCH] fs/f2fs: atomically set inode->i_flags Zhang Zhen
@ 2015-08-24  3:28   ` Zhang Zhen
  2015-08-24  9:34     ` Chao Yu
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Zhen @ 2015-08-24  3:28 UTC (permalink / raw)
  To: jaegeuk, cm224.lee; +Cc: linux-f2fs-devel

According to commit 5f16f3225b06 ("ext4: atomically set inode->i_flags in
ext4_set_inode_flags()").

Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
---
 fs/f2fs/inode.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 2550868..141ca63 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -12,7 +12,6 @@
 #include <linux/f2fs_fs.h>
 #include <linux/buffer_head.h>
 #include <linux/writeback.h>
-#include <linux/bitops.h>

 #include "f2fs.h"
 #include "node.h"
@@ -34,8 +33,8 @@ void f2fs_set_inode_flags(struct inode *inode)
 		new_fl |= S_NOATIME;
 	if (flags & FS_DIRSYNC_FL)
 		new_fl |= S_DIRSYNC;
-	set_mask_bits(&inode->i_flags,
-			S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC, new_fl);
+	inode_set_flags(inode, new_fl,
+			S_SYNC|S_APPEND|S_IMMUTABLE|S_NOATIME|S_DIRSYNC);
 }

 static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri)
-- 
1.9.1


.







------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs/f2fs: atomically set inode->i_flags
  2015-08-24  3:28   ` Zhang Zhen
@ 2015-08-24  9:34     ` Chao Yu
  0 siblings, 0 replies; 3+ messages in thread
From: Chao Yu @ 2015-08-24  9:34 UTC (permalink / raw)
  To: 'Zhang Zhen', jaegeuk, cm224.lee; +Cc: linux-f2fs-devel

> -----Original Message-----
> From: Zhang Zhen [mailto:zhenzhang.zhang@huawei.com]
> Sent: Monday, August 24, 2015 11:29 AM
> To: jaegeuk@kernel.org; cm224.lee@samsung.com
> Cc: linux-f2fs-devel@lists.sourceforge.net
> Subject: [f2fs-dev] [PATCH] fs/f2fs: atomically set inode->i_flags
> 
> According to commit 5f16f3225b06 ("ext4: atomically set inode->i_flags in
> ext4_set_inode_flags()").
> 
> Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>

Reviewed-by: Chao Yu <chao2.yu@samsung.com>


------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-24  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1440383887-31795-1-git-send-email-zhenzhang.zhang@huawei.com>
2015-08-24  2:41 ` [PATCH] fs/f2fs: atomically set inode->i_flags Zhang Zhen
2015-08-24  3:28   ` Zhang Zhen
2015-08-24  9:34     ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).