mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
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>
This commit is contained in:
parent
1582af2eaa
commit
51b10f3fe4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user