Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1766494lqa; Mon, 29 Apr 2024 20:30:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVucRolchID56yQXROZl963u5ZdpZ9L9kMdktkEIoqsqMzLGfFfP0wCdh5eYz2U0Y6kX99QNCVIteEaITOuvKv9k9GKAo4T9BdrVsmxuA== X-Google-Smtp-Source: AGHT+IFc9zC4XxB8GBKoW4QExeSTbV3fNGoFi74OoSLmiVafwMos7SJ+hrcDmdaN5jCamsFx6a0m X-Received: by 2002:a19:8c45:0:b0:516:d1af:bd84 with SMTP id i5-20020a198c45000000b00516d1afbd84mr7043109lfj.14.1714447806858; Mon, 29 Apr 2024 20:30:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714447806; cv=pass; d=google.com; s=arc-20160816; b=PKTJsqsA2vFwhWOK/oIL2bGmsD+tV6JfyBv6yNjvhIXo3yrlHnRBaU7oRw6aClwfOE AHrOYfc55Syr4L5oYC9oIlmE6V9+PhtWWJdfTyQ/QF0GhJZFR+NNrqKjmG5ttieqMbpS STGoopVHeT9uvbpiMnJXqCwtXOEfj4W6MJaVhPCIUamICeqR47BvbaZ+5S2QJ99ro0EN AN1Z8adxT/Tz0W/HNQYRyVPz5+Z3lPo8DSW2bC8BXzRmjMtmiPnbnzAXMS9jkghQvBJC wzNIJNW4T9SW0Ckf+6EvuX6rNVEb+PU2mJlPxwfewEwjbmS5kR7Ty7TXVHqPRal334K6 ppqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=wrUtKxErsS7+nLErBpaeHAEAODEPjDyd0aA2QyiBd6k=; fh=md2kVIsEU7q/zkmNauO0psAe7KGpSwAVgu0ObQLKXes=; b=zvlLmAl0ITAn9k2BlO85dxCnd2sqGzNWlNUskaFno2UdSbQ7BkQxPTn01vimmsMmFs ZI08pW5YcOMvyTQPTPi8TyquKG/r4JuQpQ91/xx9hZytWSzZnmRR0nRtdzK5f/ZABcmr 1gDSBUsu86E22Yi80i2i2WggMGx9jOq4YOjy5EZbmhuZ7H2IahR9nUvEInVe9M/dIWgX iFeC5Gc1kmzpXsyaeGTG/PVeEs1qWPQ3o1ERkMUAi8ov7wZl65Vo9gfuUM51FcU1rpUe KHvKMZdBV9K4pyJcMhR8Yqx6zvwoIOSOMZSSuX2k6ud1+xVcO6JBja2mpH5BGcX7sLPn koVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gecyBftA; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-163295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u3-20020a17090626c300b00a556d10a90asi14398692ejc.343.2024.04.29.20.30.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 20:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gecyBftA; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-163295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163295-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 923471F25021 for ; Tue, 30 Apr 2024 03:30:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABDF815ACB; Tue, 30 Apr 2024 03:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="gecyBftA" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43E06125CC for ; Tue, 30 Apr 2024 03:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714447778; cv=none; b=ZKZXHaBbsGGOkUz7HHRVGY4Wl2qguteTtOKw7BnwB4Du3xwAarzdA2EP2uZ12xVh7HcmPUhNRucl4X97lvSkHuV2jW4KinVcogXC3Sw2R5jqR9nfvyUP1V+/c2NREIOBk+eROkYc3BQL5v0p2p1IqzajFmUa39l1cUoXY1R+ua0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714447778; c=relaxed/simple; bh=Q7cRxE+187pu+rKFG2ATfFSh2S0Gw+uGrNv77tLjkys=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GFy5NA5qP3si7RptiynBSm1bJ2RtEH1PqUdh/6MAi/BTWk0894VuTizKfXfWTGguH4cA0EE69e060stlUdrp3nWePPibTBXNNKy5TcvBq6OSGBEF1+2zjWzvdpKl1P0Nig14mMd1gzIygZoXuYI14R/6O4jrViVJLoN+GEuoHHA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=gecyBftA; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Mon, 29 Apr 2024 23:29:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714447775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wrUtKxErsS7+nLErBpaeHAEAODEPjDyd0aA2QyiBd6k=; b=gecyBftAKHXeKJbp1xfPU4oFrLp1w8ZLX+xXQYrmVA0tuojQYA/ySmUCh67K6MGieNZGLG TuxGQLp8LAijTqt/68wihmCXOZPwLdo/GmbRo2GZlFoQbrdNieVWOcYBg3LvTUNpEmEQGw Rb7upmQ9FJUdMYdlAU+ptWJtE9D1qKw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Youling Tang Cc: linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, Youling Tang Subject: Re: [PATCH] bcachefs: Correct the FS_IOC_GETFLAGS to FS_IOC32_GETFLAGS in bch2_compat_fs_ioctl() Message-ID: References: <20240430032744.943468-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240430032744.943468-1-youling.tang@linux.dev> X-Migadu-Flow: FLOW_OUT On Tue, Apr 30, 2024 at 11:27:44AM +0800, Youling Tang wrote: > From: Youling Tang > > It should be FS_IOC32_GETFLAGS instead of FS_IOC_GETFLAGS in > compat ioctl. Do we by chance have a test for this? > > Signed-off-by: Youling Tang > --- > fs/bcachefs/fs-ioctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c > index 3dc8630ff9fe..205a323ffc6d 100644 > --- a/fs/bcachefs/fs-ioctl.c > +++ b/fs/bcachefs/fs-ioctl.c > @@ -548,7 +548,7 @@ long bch2_compat_fs_ioctl(struct file *file, unsigned cmd, unsigned long arg) > { > /* These are just misnamed, they actually get/put from/to user an int */ > switch (cmd) { > - case FS_IOC_GETFLAGS: > + case FS_IOC32_GETFLAGS: > cmd = FS_IOC_GETFLAGS; > break; > case FS_IOC32_SETFLAGS: > -- > 2.34.1 >