summaryrefslogtreecommitdiff
path: root/libbcachefs/fs-ioctl.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-06-02 17:24:53 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-06-02 17:24:53 -0400
commit838bbd755ea6a501892546b07b77d0605d2114f0 (patch)
tree434c96e7e06824c21532d482441554dc4228c7b8 /libbcachefs/fs-ioctl.c
parent315508358d5880f4b4b801d932fa15781acdee90 (diff)
Update bcachefs sources to a41cc7750fb8 bcachefs: Add flags to subvolume_to_text()
Diffstat (limited to 'libbcachefs/fs-ioctl.c')
-rw-r--r--libbcachefs/fs-ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/fs-ioctl.c b/libbcachefs/fs-ioctl.c
index 05361a79..4e72e654 100644
--- a/libbcachefs/fs-ioctl.c
+++ b/libbcachefs/fs-ioctl.c
@@ -268,13 +268,13 @@ static long bch2_ioctl_subvolume_create(struct bch_fs *c, struct file *filp,
}
if (dst_dentry->d_inode) {
- error = -BCH_ERR_EEXIST_subvolume_create;
+ error = bch_err_throw(c, EEXIST_subvolume_create);
goto err3;
}
dir = dst_path.dentry->d_inode;
if (IS_DEADDIR(dir)) {
- error = -BCH_ERR_ENOENT_directory_dead;
+ error = bch_err_throw(c, ENOENT_directory_dead);
goto err3;
}