From patchwork Tue Apr 16 20:19:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 162364 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4656282jan; Tue, 16 Apr 2019 13:22:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyemlH09qeZlXoSz8LeK/24fy/eWL9guWPCRkheXmaSAmC9XeorxQjl0uKyYZs40k3bKjjT X-Received: by 2002:a63:f707:: with SMTP id x7mr79659205pgh.343.1555446159620; Tue, 16 Apr 2019 13:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555446159; cv=none; d=google.com; s=arc-20160816; b=SeGqCrcsXK/2IamTMkFjvJwviHMk92G8m8sRgBfmESCDFB5qdtXs7s/fUVmn8QrrKd cC9KL5NkeUsCWCOcg0m+Bb2y8KQ0zuM73zdeB4VGh2rUrRbkAnSbgfYZgLVqbtQ+OR2j vTVhxaqllzwbe6g8xtWVMhlttY+vvslyijXnWVV4rv5Km+qyxzhXuqzBHPNr08f3Tpqz Hx9PQnpMmeENkJ+Xn/odD33Yj7uMJR0Mm5alFo8A9iCsqpm8/6KGAz2z3qJoEyjbmtK6 ++6ouXad1V5UahwtnkKrUwyDl9YLGAzrfrqsKoed+ewmOdDaXm7aHbYkvZdfdwk+8JYt ALRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VZIlBKomWz5xABYmjx36EXdtcrCi2wDbnGPJlzGfFeU=; b=PYfFNlnHEQxgqg5y742xzh7FORvt2T7mo2iXeycNtjAvsOC2FxZqwTZpMC6DrO8ggd 727kplhrvuy4wKILKh19yV7vwREQ8m/aerdzbdC2YcchU3vbzNjZBBpkqK2fWzXXkGu4 MOWU61ZbaEAPDGPoqocPZNaieXk32CsgAboryFDBvX2DISFXUamvsMeeqqMgL7RMmqOz hUDGkVCTbzEb57LvkwoBU4Yxwo55BgC3bRVKBe94WPShIGZD8hKvuZUG5Qmruy2jO4o7 xr1QFLh/OVV1HpkaAcsTONwIsTXub3S8c6njOOCfiYYTYgL8suxavz1XcPSMNo7f80Vx /nWA== 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 o3si13093359pld.61.2019.04.16.13.22.39; Tue, 16 Apr 2019 13:22:39 -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 S1729143AbfDPUWi (ORCPT + 14 others); Tue, 16 Apr 2019 16:22:38 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:41117 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbfDPUWi (ORCPT ); Tue, 16 Apr 2019 16:22:38 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MPK73-1hV74f1wth-00PhZT; Tue, 16 Apr 2019 22:22:32 +0200 From: Arnd Bergmann To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, Arnd Bergmann , "Yan, Zheng" , stable@vger.kernel.org, Sage Weil , Ilya Dryomov , ceph-devel@vger.kernel.org Subject: [PATCH v3 11/26] ceph: fix compat_ioctl for ceph_dir_operations Date: Tue, 16 Apr 2019 22:19:49 +0200 Message-Id: <20190416202013.4034148-12-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190416202013.4034148-1-arnd@arndb.de> References: <20190416202013.4034148-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:ncSG/iqiJvmm61j4vsNYbdHxz+1auh9LAHdlTe/IOePGsBdJynV 0RyxbgpRCJQJpC/0kJtvXMy4qSCF2h1YXQ2NLyZW/bsDz4ednUxHq+Eh8XDmIFJ2cNFZIlV GQOVEHRoDY19ALYhS3sJGpEg4XhKCYKfTdlgjRS4R8x2MoPpSabUnxdWH2Ffnipn1QEvTWj 8/j3UT1dHvyxs3MwCUwSg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:Io/DT0YbMVc=:hWKcfZ9kn+e5xqhBna7DgQ TGsuOgDATCLBVV55VG/VX21kQaI4STQh4untrqriqS7sDUBknRlzuzaSlKs10HWOT6VW31+3b X9E5mo+jVbSS2TOAQGh5+7UprNfn/Xesv2pa+yfiAgeWK5b4dRugLrrmIxe9o2YsKIeidO3yV t/nUkg0ZQDZIMfDPVukY+lSqnFffLgwNk5fREDXR1NeTX1uUfhQ4mxRhfh/CsOZdshY93oicG rCRcEt3ke8kcmhYJ502Os253aGLd+kjyTo7jPDXI2I1rNtobWd4s/egDIEoTFMSBSajcL8NsB yCeiHoC3ILDYJ8EGuqg+2qLM2P9pr/+BOVHeXaZwjQFKNBRYRL8oJobJvgje6jddkyLtCW/SW 6DcYYFBjNSBavMvW3l9KuwIgWJR/Lq3BJQna+P7xfEilKBfiMSUf3FfpN4mg2X4NEmsmwkfFQ VmU6vnjZXhXqEn/itXrXOfyFK6SJnBHw8Lll/kSierrmKBViLr2NZojayKAzAvDHMqI53IfUM Npv5vhJ5RE4g9yH4wLhE/yOEt9Q22OFt1S72QqJ3XKJBr9IVEV+h8A+boePpSv5ThTW+HMVqX 0T9Mnkdy+QV/EXodhbEfd3PdtmL7SLH22aw4cqQzhOFq9hMGjZQGu9M7R4BKTEeRLRwt9Js95 Z3I5jKuDF7fgmlwlQG1bnx4AE/fa8TGTaZzURORnWpRROH4pUgYh2aQILg4odwY0O+A0hJMSw DMKJO6vl6crLloVuEWyT0hSyhXQRwa0/bULRXA== 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. Reviewed-by: "Yan, Zheng" Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann --- fs/ceph/dir.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index a8f429882249..7c060cb22aa3 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -1785,6 +1785,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,