Message ID | 20230128103226.1318362-1-chao@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1282558wrn; Sat, 28 Jan 2023 02:40:19 -0800 (PST) X-Google-Smtp-Source: AK7set8k08fKmKkZxMzCyfmWJR3ZOGjmHFA6NxmwBbOhteOB9dN5dMiURDVpTb8n1tPbjCa9XSkR X-Received: by 2002:a17:907:2989:b0:883:5b33:e019 with SMTP id eu9-20020a170907298900b008835b33e019mr1142507ejc.61.1674902419564; Sat, 28 Jan 2023 02:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674902419; cv=none; d=google.com; s=arc-20160816; b=Xr5Ip2Qyr+R2YBLETdCiELk22K1beQiPNc8WXkGWGjQ0TAGUy6tM2vrulPXUtpxgRV cOm7yVrBCxWLGc+HsJKq5jauYlB8zQzHFW6hNgiWRWLZqL3Ob4S2AVpV5Hhnmcgu+YQp DsC69+NTRY6NpdTrtVCNcfRuR2qYqVvfw0701KBucOXYRGtoHb5Oa0lHycNJfeW1BaT/ 9vswW5kdHHuBn479hTTfu8Binm6KFpP/WU+PPKiiZf0+0ncxHzJuXPyx/mw+Nwu+ClRp jabF3rS+whmvG9BBAZuIFZACrbS5MCX7ZE/bswjzsxGPat2ROshwNiyg8oCDmiK5zQr/ alLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=R9AGV0K+hK32HMyaPq2dPmfIh5dwLE72QNUmw5nv2OQ=; b=zBAVZpHaTljYJUClSuHPpbpoe5ux/cdsFtCZue0qT5AhxvP8sQpe+EmXlQqMGFides 0tKdCA8ShF2jo265k6+Cx0Yz3ZnNzXn8au2IMdf5aWjDY+gjXS8PhrAsPAk4iRpFwZye XBzCuT7e+7iOhl22IhCOSsNMhM8JIINF10aCbGQrZmlBeW1OKTn9tYM3qHr/PzzNw4Pz IEtZAtFYcF7jf7UbC1ilmsGMCILIU3USYbltkAdpwBqS9xRpiyNJ1Hx8lt4TapvAHOjF dza7hqFnvLzuCDsvZJC7IXu1M1pRoN1FUMidnO6xTc06jlk61YqMGEaqnhZRn6tNM9jN 74Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aNsUWymY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a170906021300b0087f812bc0a1si3414173ejd.826.2023.01.28.02.39.56; Sat, 28 Jan 2023 02:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aNsUWymY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233971AbjA1Kcm (ORCPT <rfc822;jesperjuhl76@gmail.com> + 99 others); Sat, 28 Jan 2023 05:32:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231444AbjA1Kck (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 28 Jan 2023 05:32:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF77DE078 for <linux-kernel@vger.kernel.org>; Sat, 28 Jan 2023 02:32:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4989960AC1 for <linux-kernel@vger.kernel.org>; Sat, 28 Jan 2023 10:32:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34030C433EF; Sat, 28 Jan 2023 10:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674901958; bh=SPTnuBIxR8VBSA4mE6Tax7hR/OLeSZHZkemoMogaXMU=; h=From:To:Cc:Subject:Date:From; b=aNsUWymYfllNo4dTvBfz7zwI6diVZn62CPF1s4hnCpMI6Q1/M7k8TV3m6R1KD96i3 8fD0Y578c87gj5xE8nz7fS2MEqjelKjpZajqFlpGtGyLVgmyoP7H9YmaelN4m90EZm rpiCybGsT60lHxxEYVPvPAR/qZ+G+egCSRcdMGaypXhRZIUk7PbP/Z0AWYoa/qfcWY mRE/9nE9EirYJZsgtX+tMRsMfgLyLqNI0RsDnMLHTF6dekjbwIAjWEeYBzhrqlOhOz 5EiR3MD4DSK7jY5c64AY05asUBfde+Znr6EzsE823WKRVrTds2cXvVuypcdZsOfp2H BphJdaD2jVsrg== From: Chao Yu <chao@kernel.org> To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu <chao@kernel.org> Subject: [PATCH] f2fs: fix to handle F2FS_IOC_START_ATOMIC_REPLACE in f2fs_compat_ioctl() Date: Sat, 28 Jan 2023 18:32:26 +0800 Message-Id: <20230128103226.1318362-1-chao@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756262479776409267?= X-GMAIL-MSGID: =?utf-8?q?1756262479776409267?= |
Series |
f2fs: fix to handle F2FS_IOC_START_ATOMIC_REPLACE in f2fs_compat_ioctl()
|
|
Commit Message
Chao Yu
Jan. 28, 2023, 10:32 a.m. UTC
Otherwise, 32-bits binary call ioctl(F2FS_IOC_START_ATOMIC_REPLACE) will
fail in 64-bits kernel.
Fixes: 41e8f85a75fc ("f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE")
Signed-off-by: Chao Yu <chao@kernel.org>
---
fs/f2fs/file.c | 1 +
1 file changed, 1 insertion(+)
Comments
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <jaegeuk@kernel.org>: On Sat, 28 Jan 2023 18:32:26 +0800 you wrote: > Otherwise, 32-bits binary call ioctl(F2FS_IOC_START_ATOMIC_REPLACE) will > fail in 64-bits kernel. > > Fixes: 41e8f85a75fc ("f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE") > Signed-off-by: Chao Yu <chao@kernel.org> > --- > fs/f2fs/file.c | 1 + > 1 file changed, 1 insertion(+) Here is the summary with links: - [f2fs-dev] f2fs: fix to handle F2FS_IOC_START_ATOMIC_REPLACE in f2fs_compat_ioctl() https://git.kernel.org/jaegeuk/f2fs/c/848be5e25469 You are awesome, thank you!
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6f6181b9b01e..39e3e5c85e57 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -4845,6 +4845,7 @@ long f2fs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case F2FS_IOC32_MOVE_RANGE: return f2fs_compat_ioc_move_range(file, arg); case F2FS_IOC_START_ATOMIC_WRITE: + case F2FS_IOC_START_ATOMIC_REPLACE: case F2FS_IOC_COMMIT_ATOMIC_WRITE: case F2FS_IOC_START_VOLATILE_WRITE: case F2FS_IOC_RELEASE_VOLATILE_WRITE: