summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-03-09 15:12:40 +0800
committerIlya Dryomov <idryomov@gmail.com>2018-04-02 10:12:48 +0200
commit51b10f3fe446f536b6edf90ce6941882033dd93b (patch)
treeee01cfb22c8d517cae0de7b8c01d32c85e5294a3 /fs/ceph
parent1582af2eaaf17cbcd7864172347c1db10b6b2210 (diff)
downloadtalos-obmc-linux-51b10f3fe446f536b6edf90ce6941882033dd93b.tar.gz
talos-obmc-linux-51b10f3fe446f536b6edf90ce6941882033dd93b.zip
ceph: filter out used flags when printing unused open flags
Filter out used access mode flags when printing unused open flags. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index df9f435c5260..a1f0aee29c27 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -30,6 +30,8 @@ static __le32 ceph_flags_sys2wire(u32 flags)
break;
}
+ flags &= ~O_ACCMODE;
+
#define ceph_sys2wire(a) if (flags & a) { wire_flags |= CEPH_##a; flags &= ~a; }
ceph_sys2wire(O_CREAT);
OpenPOWER on IntegriCloud