diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-03-09 02:12:40 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 04:12:48 -0400 |
commit | 51b10f3fe446f536b6edf90ce6941882033dd93b (patch) | |
tree | ee01cfb22c8d517cae0de7b8c01d32c85e5294a3 | |
parent | 1582af2eaaf17cbcd7864172347c1db10b6b2210 (diff) |
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>
-rw-r--r-- | fs/ceph/file.c | 2 |
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) | |||
30 | break; | 30 | break; |
31 | } | 31 | } |
32 | 32 | ||
33 | flags &= ~O_ACCMODE; | ||
34 | |||
33 | #define ceph_sys2wire(a) if (flags & a) { wire_flags |= CEPH_##a; flags &= ~a; } | 35 | #define ceph_sys2wire(a) if (flags & a) { wire_flags |= CEPH_##a; flags &= ~a; } |
34 | 36 | ||
35 | ceph_sys2wire(O_CREAT); | 37 | ceph_sys2wire(O_CREAT); |