From patchwork Wed Sep 12 15:01:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10597695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 26E8114E5 for ; Wed, 12 Sep 2018 15:07:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1678E2A358 for ; Wed, 12 Sep 2018 15:07:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A39F2A357; Wed, 12 Sep 2018 15:07:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9925F2A357 for ; Wed, 12 Sep 2018 15:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbeILUMm (ORCPT ); Wed, 12 Sep 2018 16:12:42 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:43715 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbeILUMm (ORCPT ); Wed, 12 Sep 2018 16:12:42 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MBvyp-1gAFRy46g3-00Am5Q; Wed, 12 Sep 2018 17:04:54 +0200 From: Arnd Bergmann To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, Arnd Bergmann , stable@vger.kernel.org, "Yan, Zheng" , Sage Weil , Ilya Dryomov , Chengguang Xu , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/17] ceph: fix compat_ioctl for ceph_dir_operations Date: Wed, 12 Sep 2018 17:01:05 +0200 Message-Id: <20180912150142.157913-4-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180912150142.157913-1-arnd@arndb.de> References: <20180912150142.157913-1-arnd@arndb.de> X-Provags-ID: V03:K1:J6i9Eex6fUAKsd9dA3fYqkJD2kpX46luePEm0s9Dwfpngq4iDNR 8VfkOikGhbGGX6M6txlpodzJ8kb/oKPCrA6Ow/8y1UnGWEZhLEqrePAbSMvICN86lN6rRyv y9Qf+6i6VGXuo59gGVZuuujaYgKD3tzaXnRA6nV12ZyfzsGLRCuPrPho71vvmR8RfgKPbDE ZR58XhUzel+x4kHlL77PQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:S7ZIwIJCSPk=:tgnKrgSXeWHUyN3rZ8tbgq vgQcb7ahv2lyZfGQughJQVmXDKGO31tGN/W0tZfLD/y2e/j2dNZJWH3lZitV8d7gRlXP0eiJL 4xi8xUXO+qxBmuykaS600L0OfTaIBdGkISUjD/dgK2sUvUC7y/KUTraDKPhevJhx4AOiTsSei bpfxm/iyFsL3LRvrt0sWo6LGif1G0qaS7lIqic21x939VpMkGq1dfPuCRT4alTdlPpeti1nop Vn0aV11gUuTydL/ZiJtT+jAVEMPGGEu0eaRcdgznkgmzxynef5xO5a54IwJXx2JT4zPyoPEiG ZtiqVFhAZdZmIHgEk1AWFC9cduQtFhGgvuf6A3gC/4s2dGVf0dBdjbQCt2piKnc74o4gL+xK5 Zgsl8uKIb1tgXa40VTUcNKO3qAgdenuFW88L10OLk3uPu4wTBTDBN6MyFYwkIYwsgfL8HoF4J i7pBEHxV9QNIHCsNmJwDx5b6ZQredGQn0oomqRbvcDDFHNLKlIxIYUzVJ0PsIGOuVil0YGOX4 fgy8ZzxXJQCyqHS1S8FfHCESDehWlD1WP8ptDjiG5KxQca6nzYvofRNya8n39P96rxXtSd3gK IcwQLRrd5bNaFBEiHVvy+p2iLNMN44qm9wlZzbDaG/wGYNvEuyIYAITNGDB4SR/9tpL2jm+wY gi9Chch0xcsLVTcPdQ6LOr8+tN0ty9CrYiokb4HkSjdyLLv2Fvu5lR+TtcH5rkN2faqU= Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ceph_ioctl function is used both for files and directories, but only the files support doing that in 32-bit compat mode. For consistency, add the same compat handler to the dir operations as well. Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann Reviewed-by: "Yan, Zheng" --- fs/ceph/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 82928cea0209..da73f29d7faa 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -1489,6 +1489,7 @@ const struct file_operations ceph_dir_fops = { .open = ceph_open, .release = ceph_release, .unlocked_ioctl = ceph_ioctl, + .compat_ioctl = ceph_ioctl, .fsync = ceph_fsync, .lock = ceph_lock, .flock = ceph_flock,