@@ -435,7 +435,7 @@ static int bch2_link(struct dentry *old_dentry, struct inode *vdir,
435
435
bch2_subvol_is_ro (c , inode -> ei_subvol ) ?:
436
436
__bch2_link (c , inode , dir , dentry );
437
437
if (unlikely (ret ))
438
- return ret ;
438
+ return bch2_err_class ( ret ) ;
439
439
440
440
ihold (& inode -> v );
441
441
d_instantiate (dentry , & inode -> v );
@@ -487,8 +487,9 @@ static int bch2_unlink(struct inode *vdir, struct dentry *dentry)
487
487
struct bch_inode_info * dir = to_bch_ei (vdir );
488
488
struct bch_fs * c = dir -> v .i_sb -> s_fs_info ;
489
489
490
- return bch2_subvol_is_ro (c , dir -> ei_subvol ) ?:
490
+ int ret = bch2_subvol_is_ro (c , dir -> ei_subvol ) ?:
491
491
__bch2_unlink (vdir , dentry , false);
492
+ return bch2_err_class (ret );
492
493
}
493
494
494
495
static int bch2_symlink (struct mnt_idmap * idmap ,
@@ -523,7 +524,7 @@ static int bch2_symlink(struct mnt_idmap *idmap,
523
524
return 0 ;
524
525
err :
525
526
iput (& inode -> v );
526
- return ret ;
527
+ return bch2_err_class ( ret ) ;
527
528
}
528
529
529
530
static int bch2_mkdir (struct mnt_idmap * idmap ,
@@ -641,7 +642,7 @@ static int bch2_rename2(struct mnt_idmap *idmap,
641
642
src_inode ,
642
643
dst_inode );
643
644
644
- return ret ;
645
+ return bch2_err_class ( ret ) ;
645
646
}
646
647
647
648
static void bch2_setattr_copy (struct mnt_idmap * idmap ,
0 commit comments