]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix file open flags on ppc64
authorAlexander Graf <agraf@suse.de>
Thu, 27 Apr 2017 16:34:00 +0000 (18:34 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:24 +0000 (09:19 +0200)
commit2d5482f106c786058efbe4b303f128d8a4947426
tree78b25de67d31fd059fafbddee44e5c835694d1b5
parent367f1dfc342bb01373c48b93ec1734f2b79b336b
ceph: fix file open flags on ppc64

The file open flags (O_foo) are platform specific and should never go
out to an interface that is not local to the system.

Unfortunately these flags have leaked out onto the wire in the cephfs
implementation. That lead to bogus flags getting transmitted on ppc64.

This patch converts the kernel view of flags to the ceph view of file
open flags.

Fixes: 71821f84a ("ceph: file operations")
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c
include/linux/ceph/ceph_fs.h