Fix build for cmd_fusemount.c

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-11-17 17:04:46 -05:00
parent 83bc15eefe
commit c6e6954928

View File

@ -206,7 +206,7 @@ retry:
ret = bch2_inode_write(trans, &iter, &inode_u) ?: ret = bch2_inode_write(trans, &iter, &inode_u) ?:
bch2_trans_commit(trans, NULL, NULL, bch2_trans_commit(trans, NULL, NULL,
BTREE_INSERT_NOFAIL); BCH_TRANS_COMMIT_no_enospc);
err: err:
bch2_trans_iter_exit(trans, &iter); bch2_trans_iter_exit(trans, &iter);
if (ret == -EINTR) 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); 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, bch2_unlink_trans(trans, dir, &dir_u,
&inode_u, &qstr, false)); &inode_u, &qstr, false));
@ -538,8 +539,7 @@ retry:
goto err; goto err;
ret = bch2_trans_commit(trans, NULL, NULL, ret = bch2_trans_commit(trans, NULL, NULL,
BTREE_INSERT_NOFAIL); BCH_TRANS_COMMIT_no_enospc);
err: err:
bch2_trans_iter_exit(trans, &iter); bch2_trans_iter_exit(trans, &iter);
if (ret == -EINTR) if (ret == -EINTR)