projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1582af2
)
ceph: filter out used flags when printing unused open flags
author
Chengguang Xu
<cgxu519@gmx.com>
Fri, 9 Mar 2018 07:12:40 +0000
(15:12 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:48 +0000
(10:12 +0200)
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>
fs/ceph/file.c
patch
|
blob
|
history
diff --git
a/fs/ceph/file.c
b/fs/ceph/file.c
index df9f435c5260e344a8338d0ae9f80e2699f046ba..a1f0aee29c27389d47f242890a7e81da675675a2 100644
(file)
--- 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);