From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79C1CC38142 for ; Sat, 28 Jan 2023 10:33:11 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pLiWF-0005bQ-KG; Sat, 28 Jan 2023 10:33:10 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pLiVu-0005aw-Rp for linux-f2fs-devel@lists.sourceforge.net; Sat, 28 Jan 2023 10:32:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=R9AGV0K+hK32HMyaPq2dPmfIh5dwLE72QNUmw5nv2OQ=; b=cyb2HjnD/L6J6+D5NdCJsMcGFT Tw0CiJh1/zpq77ad3H2HecaRcuj9GqfEF9XVvv1TRYKzCv029RSV3y5POtXZ3CgMyEb1f7nTYTAzm cz+HX7RvDdJFOkLpL8De6E+7pRAoY2MQDkydB9S6HcSfDKihFCDnsjPMiutgwtnw3Zvo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=R9AGV0K+hK32HMyaPq2dPmfIh5dwLE72QNUmw5nv2OQ=; b=Q pW4cJbX6kWvspgNCBKx841YxXpO+JigxKckO+D/XCv1L8cMY/uSHkEgdp04861iP7rhWSeBbkJYzG xq6gBuOUygjMumovyb6sV/4HfA6kRvy4YBkrOMqLYVnSw0vxJbS8+3rskZ0R2pAKQq7+zhkuePr+X NSqJS+R1RNRwxlOM=; Received: from ams.source.kernel.org ([145.40.68.75]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1pLiVt-001aZ8-Dp for linux-f2fs-devel@lists.sourceforge.net; Sat, 28 Jan 2023 10:32:50 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id EC22DB8049B for ; 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 To: jaegeuk@kernel.org 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 X-Headers-End: 1pLiVt-001aZ8-Dp Subject: [f2fs-dev] [PATCH] f2fs: fix to handle F2FS_IOC_START_ATOMIC_REPLACE in f2fs_compat_ioctl() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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 --- fs/f2fs/file.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.25.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel