diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-17 17:04:46 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-17 17:04:46 -0500 |
commit | c6e69549288b7d8289dcd84a2178083eed7db016 (patch) | |
tree | 0b6325abe48253c9ebe73af4a12b0c983e24355e | |
parent | 83bc15eefe8560b8b918386da5fbfb2a1a9500fa (diff) | |
download | bcachefs-tools-c6e69549288b7d8289dcd84a2178083eed7db016.tar.gz |
Fix build for cmd_fusemount.c
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | cmd_fusemount.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd_fusemount.c b/cmd_fusemount.c index 46dbb9de..a09d296c 100644 --- a/cmd_fusemount.c +++ b/cmd_fusemount.c @@ -206,7 +206,7 @@ retry: ret = bch2_inode_write(trans, &iter, &inode_u) ?: bch2_trans_commit(trans, NULL, NULL, - BTREE_INSERT_NOFAIL); + BCH_TRANS_COMMIT_no_enospc); err: bch2_trans_iter_exit(trans, &iter); if (ret == -EINTR) @@ -286,7 +286,8 @@ 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, BTREE_INSERT_NOFAIL, + int ret = bch2_trans_do(c, NULL, NULL, + BCH_TRANS_COMMIT_no_enospc, bch2_unlink_trans(trans, dir, &dir_u, &inode_u, &qstr, false)); @@ -538,8 +539,7 @@ retry: goto err; ret = bch2_trans_commit(trans, NULL, NULL, - BTREE_INSERT_NOFAIL); - + BCH_TRANS_COMMIT_no_enospc); err: bch2_trans_iter_exit(trans, &iter); if (ret == -EINTR) |