From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wiki.archlinuxcn.org (wiki.archlinuxcn.org [104.245.9.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7409D70839 for ; Sat, 26 Oct 2024 04:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=104.245.9.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729916846; cv=none; b=tSC+2h5HujPcnUCdiy1/QAsi3k8TsLxV4Jjr7LDD5cLfCa1J8j4ZBvNuf9xuMdt7s4zAky1EEEWpm1srNT3AWZtTSn28OU0dsseYADcXulH30/zyVvIwBxT0GTT8o3uApBxFgBl/UU7pTDSgLHSMP2PBDKBG1CombvzWkWy9bJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729916846; c=relaxed/simple; bh=Gbz1S1gL4TFwdAhJkhrlbvgnhBGD4ZfgCW77PfqpjK4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EjCrloWYcf2iN7DrNFXC50zb8MzrscmN/3fGmNEQbsxAwaVJRrFyblQKWYCK8lLqSQm+LcpkhH4RYgw60RQu/dvU9RJfi/bG7YAiluo7kItokezWlqX0ILfGYoig04dgZTMCB26K5lbdT3NQwVKEKn290tRKJ1bKk52GLI8PxcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=archlinuxcn.org; spf=pass smtp.mailfrom=archlinuxcn.org; dkim=pass (2048-bit key) header.d=archlinuxcn.org header.i=@archlinuxcn.org header.b=mfYwd4O/; arc=none smtp.client-ip=104.245.9.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=archlinuxcn.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=archlinuxcn.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=archlinuxcn.org header.i=@archlinuxcn.org header.b="mfYwd4O/" DKIM-Signature: a=rsa-sha256; bh=OMIgrC7YNVCP8CFPFK3RoWlk+jesGqyN4klaqnsfAYM=; c=relaxed/relaxed; d=archlinuxcn.org; h=Subject:Subject:Sender:To:To:Cc:Cc:From:From:Date:Date:MIME-Version:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Reply-To:In-Reply-To:Message-Id:Message-Id:References:Autocrypt:Openpgp; i=@archlinuxcn.org; s=default; t=1729916812; v=1; x=1730348812; b=mfYwd4O/Yk5KG6xtZKPEIz10KcuNkYcrj0eDQDZJW9dZVG/LCDcmoYbfLdOrY8/uUWGlYGlx tSJ4/k0eP+XSyBp8Qg5Ldr/I3ZSJikmwag0CpqXmkFmqS+6v9ACJY4K0hji1noluYdbHq4rT6dU vBFRZn3AH2bRHJTo73IvQ7U4rvhOV7LPgQ6D/50kaecCoC385V0J+tFqPtx9Gint2+EAXVV50C4 LvspQWJ1cpYX87sfIpulQ2kOQDbxfRGxNxWyMwOlVBq/glUlKzThAfoXTTAziv/HUB1BicTS52I lBQnhs5rOpbXAmDnpOLdz2olmNCEM5N+P3uskOJSeoSEA== Received: by wiki.archlinuxcn.org (envelope-sender ) with ESMTPS id 61519a25; Sat, 26 Oct 2024 12:26:52 +0800 From: Integral To: kent.overstreet@gmail.com, kent.overstreet@linux.dev, lihongbo22@huawei.com Cc: mmpgouride@gmail.com, linux-bcachefs@vger.kernel.org, integral@archlinuxcn.org Subject: [PATCH] Fix build failure when BCACHEFS_FUSE=1 Date: Sat, 26 Oct 2024 12:26:42 +0800 Message-ID: <20241026042642.483150-1-integral@archlinuxcn.org> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-bcachefs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently, when BCACHEFS_FUSE=1 is set, bcachefs-tools failed to build. Replace "bch2_trans_do()" macro with "bch2_trans_commit_do()" in cmd_fusemount.c to fix build failure. Signed-off-by: Integral --- c_src/cmd_fusemount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c_src/cmd_fusemount.c b/c_src/cmd_fusemount.c index 50d35832..babdb6fb 100644 --- a/c_src/cmd_fusemount.c +++ b/c_src/cmd_fusemount.c @@ -242,7 +242,7 @@ static int do_create(struct bch_fs *c, subvol_inum dir, bch2_inode_init_early(c, new_inode); - return bch2_trans_do(c, NULL, NULL, 0, + return bch2_trans_commit_do(c, NULL, NULL, 0, bch2_create_trans(trans, dir, &dir_u, new_inode, &qstr, @@ -295,7 +295,7 @@ static void bcachefs_fuse_unlink(fuse_req_t req, fuse_ino_t dir_ino, fuse_log(FUSE_LOG_DEBUG, "bcachefs_fuse_unlink(%llu, %s)\n", dir.inum, name); - int ret = bch2_trans_do(c, NULL, NULL, + int ret = bch2_trans_commit_do(c, NULL, NULL, BCH_TRANS_COMMIT_no_enospc, bch2_unlink_trans(trans, dir, &dir_u, &inode_u, &qstr, false)); @@ -330,7 +330,7 @@ static void bcachefs_fuse_rename(fuse_req_t req, src_dir.inum, srcname, dst_dir.inum, dstname, flags); /* XXX handle overwrites */ - ret = bch2_trans_do(c, NULL, NULL, 0, + ret = bch2_trans_commit_do(c, NULL, NULL, 0, bch2_rename_trans(trans, src_dir, &src_dir_u, dst_dir, &dst_dir_u, @@ -354,7 +354,7 @@ static void bcachefs_fuse_link(fuse_req_t req, fuse_ino_t ino, fuse_log(FUSE_LOG_DEBUG, "bcachefs_fuse_link(%llu, %llu, %s)\n", inum.inum, newparent.inum, newname); - ret = bch2_trans_do(c, NULL, NULL, 0, + ret = bch2_trans_commit_do(c, NULL, NULL, 0, bch2_link_trans(trans, newparent, &dir_u, inum, &inode_u, &qstr)); -- 2.47.0