summaryrefslogtreecommitdiff
path: root/libbcachefs/fs-common.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-15 23:45:29 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-02-15 23:45:29 -0500
commite773e86495534ede8efc0f3059cf0939c374a925 (patch)
treee928013e6080cd1bb78901a9e29fe000650220ed /libbcachefs/fs-common.c
parentf2ba586baf981af0e31f160325a51849089f6584 (diff)
Update bcachefs sources to 9a555a741e80 bcachefs: omit alignment attribute on big endian struct bkeyv1.6.2
Diffstat (limited to 'libbcachefs/fs-common.c')
-rw-r--r--libbcachefs/fs-common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbcachefs/fs-common.c b/libbcachefs/fs-common.c
index 255857ca..624e6f96 100644
--- a/libbcachefs/fs-common.c
+++ b/libbcachefs/fs-common.c
@@ -486,10 +486,10 @@ int bch2_rename_trans(struct btree_trans *trans,
goto err;
}
- if (S_ISDIR(dst_inode_u->bi_mode) &&
- bch2_empty_dir_trans(trans, dst_inum)) {
- ret = -ENOTEMPTY;
- goto err;
+ if (S_ISDIR(dst_inode_u->bi_mode)) {
+ ret = bch2_empty_dir_trans(trans, dst_inum);
+ if (ret)
+ goto err;
}
}