Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3532647yba; Tue, 16 Apr 2019 13:25:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuyzUoggihVAQW2+ieAmXGiDpzX3bw8KXu5h4ZqJGaPHIlxx9rxceYGjrsvLE7SjBHVFI+ X-Received: by 2002:a17:902:bc85:: with SMTP id bb5mr58011385plb.310.1555446306229; Tue, 16 Apr 2019 13:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555446306; cv=none; d=google.com; s=arc-20160816; b=0o6TSLb8tCAYct/pw0GGEtvZIbgbUWMvjT4DiDmt06HIw9ynxgJG7ldvjv9AfiVNcG QfMIGTBusGhGXBCM/InquBf1d/nX2cLXiSjN8ABESlxvhqfFWghexr4Fsa7vNFdgnLPo eil+hla93O6t0tNaJ8ttTEAOpz6ce1i35I8o97qSblG0Gstw/JTI7WSC6Zen9pCrtFOL hzLLbqndUPvrr2gM9In67GFk4iHZL+na60Exxa4tFHQsPCt/jzydE/Q7UPpHPZ+9GSAC M+dT2CLOFb8ASwKhq3Rcp1SBFWsW8mxW5wIpwWAX4+hdNp5QRA2aTBH+XiHzTGtywVvS dE6A== 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=EjY56GrMZTYf0ovhn4WRR6DMMznObvuK0mnMmNwckPWVAJetmL+DEtzy2fW1ptUg2A GEJcYKns2wwK8/+hBYO3oziYOxVadMI0rSn3GNGqOnoG3gJuYe1wbEQCHSw2wM2Jb4Qd F+KAjf546JHmcuL0zXn70yWDOhls+3e2YB5YB6dG8+dwxGaYucVK/pGOnsZrX42rNwDg /XfcZNUt65/EnVzg1Xu8ip5NgexkSRN+Jk1cMPPVtWoVxslnHOCkWcCkthCpKNtbjPRY 8qWd2q3Z6yKzIKJptmxZZHTza3kbf2LomU5lAajTQrE5hkIMinmsLwr0u/+gfKO5Yjiy cLow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 t11si52859302pfa.110.2019.04.16.13.24.49; Tue, 16 Apr 2019 13:25:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730786AbfDPUWj (ORCPT + 99 others); Tue, 16 Apr 2019 16:22:39 -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 Content-Transfer-Encoding: 8bit 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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, -- 2.20.0