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: 146569 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4938412ljw; Wed, 12 Sep 2018 08:07:48 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdan/+qSz8wpkJmdLGlnIUSyq9HaDcrknsEHm6quY5fLa2moQmCkSGgqW6R+A1WOTkboKsZM X-Received: by 2002:a63:986:: with SMTP id 128-v6mr2869301pgj.153.1536764868584; Wed, 12 Sep 2018 08:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536764868; cv=none; d=google.com; s=arc-20160816; b=luGrga+tXRJ30TjoDoAuqUY6h0Fv2Ohfb4yoJBSwMm4bNQoTh14Phk9r/46TYGgfb5 LJJEvdXixztsBxGwhi5j1NZ0fieJ/L/PmkSdmAjNcmIlKoy34/IzZhz+RbPthslU4K+Z cY/XNR8Tx2PcU4E3HEMN09JydsKnOe5rZYh0jm4V+iTTTqw+U8Y+DjN41u3Y3phwF9vj HlHy7xNlAl0oH2nTi75iqRig3jQ0BfxfJydnKM47uHDp2Xk/HQeYFVJBSwYvX2iuwd9F 0TMQQvX8xCy3wHUdpeGnl/xqh140MaVWXOoToIWtIgfctAnzRnjdAVoTSoIImF7TTiz7 UIOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2Zoeu1iBqqIO/S1aVxgls8CTmtiEAeDB2qE51hHX8pg=; b=qz+qiFx6pMl9lL4u+Cwu42eOK7i8JkR5dAkFqf/qXbMTvUzwYZLu1ygQWgIA26kOGs iukH8SNsX4LfWphgCBYPzyWM/FdHb/EXh9bbZIo+mbUtVWXrLNhQ0OmLCYm0vco0yyB7 Jlp1Us50XbWNQdW5r/P1EyjIWekmBxRuAsCCFK0FLqCDcqte/f1VYKHng4OiAzWurR2O IkgfCmbFKGWdBs5cR+CJQpqaR9xVP7XCk0lQnTd8MR/apldJp3wVYaU+PcPkhMvz7E6J dZEsT5aHBuramNy7iPJEP8hJnPAsgSs3qLsZWlKNR1dKeZu7XUcTtIqHOC2bajyIcGFj paGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23-v6si1295427pfk.25.2018.09.12.08.07.47; Wed, 12 Sep 2018 08:07:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727152AbeILUMm (ORCPT + 13 others); 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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 --- fs/ceph/dir.c | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 Reviewed-by: "Yan, Zheng" 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,