From: Zhang Zhen <zhenzhang.zhang@huawei.com>
To: <jbacik@fb.com>, <clm@fb.com>, <dsterba@suse.cz>, <fabf@skynet.be>
Cc: "linux-btrfs@vger.kernel.org >> linux-btrfs"
<linux-btrfs@vger.kernel.org>
Subject: [PATCH] fs/btrfs: use inode_set_flags() instead of set_mask_bits()
Date: Mon, 20 Apr 2015 16:43:21 +0800 [thread overview]
Message-ID: <5534BC29.9010004@huawei.com> (raw)
In-Reply-To: <1429518517-29275-1-git-send-email-zhenzhang.zhang@huawei.com>
Use inode_set_flags() instead of set_mask_bits() according to
commit 5f16f3225b062 ("ext4: atomically set inode->i_flags in
ext4_set_inode_flags()").
Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
---
fs/btrfs/ioctl.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 74609b9..728b487 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -149,9 +149,8 @@ void btrfs_update_iflags(struct inode *inode)
if (ip->flags & BTRFS_INODE_DIRSYNC)
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);
}
/*
--
1.9.1
.
next prev parent reply other threads:[~2015-04-20 8:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1429518517-29275-1-git-send-email-zhenzhang.zhang@huawei.com>
2015-04-20 8:31 ` Fwd: [PATCH] fs/btrfs: use inode_set_flags() instead of set_mask_bits() Zhang Zhen
2015-04-20 8:43 ` Zhang Zhen [this message]
2015-06-04 6:39 ` [PATCH] fs/btrfs: use general " Zhang Zhen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5534BC29.9010004@huawei.com \
--to=zhenzhang.zhang@huawei.com \
--cc=clm@fb.com \
--cc=dsterba@suse.cz \
--cc=fabf@skynet.be \
--cc=jbacik@fb.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.