Message ID | 1520579560-63962-1-git-send-email-cgxu519@gmx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Mar 9, 2018 at 3:12 PM, Chengguang Xu <cgxu519@gmx.com> wrote: > Filter out used access mode flags when printing unused open flags. > > Signed-off-by: Chengguang Xu <cgxu519@gmx.com> > --- > fs/ceph/file.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/ceph/file.c b/fs/ceph/file.c > index af3ab53..c7d8784 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); > -- > 1.8.3.1 > Applied. Thanks Yan, Zheng > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index af3ab53..c7d8784 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);
Filter out used access mode flags when printing unused open flags. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> --- fs/ceph/file.c | 2 ++ 1 file changed, 2 insertions(+)