diff options
author | 2021-10-19 15:08:00 -0400 | |
---|---|---|
committer | 2023-10-22 17:09:14 -0400 | |
commit | 9a796fdb06b56a1811f1afdd40b793e2848a990e (patch) | |
tree | 0aff8322804e52e2eb7f078bb0688a5d2fda4462 /fs/bcachefs/quota.c | |
parent | bcachefs: for_each_btree_node() now returns errors directly (diff) | |
download | linux-9a796fdb06b56a1811f1afdd40b793e2848a990e.tar.gz linux-9a796fdb06b56a1811f1afdd40b793e2848a990e.tar.bz2 linux-9a796fdb06b56a1811f1afdd40b793e2848a990e.zip |
bcachefs: bch2_trans_exit() no longer returns errors
Now that peek_node()/next_node() are converted to return errors
directly, we don't need bch2_trans_exit() to return errors - it's
cleaner this way and wasn't used much anymore.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/quota.c')
-rw-r--r-- | fs/bcachefs/quota.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c index 9b0f4d3f176d..17fd5bf107bb 100644 --- a/fs/bcachefs/quota.c +++ b/fs/bcachefs/quota.c @@ -374,7 +374,8 @@ static int bch2_quota_init_type(struct bch_fs *c, enum quota_types type) } bch2_trans_iter_exit(&trans, &iter); - return bch2_trans_exit(&trans) ?: ret; + bch2_trans_exit(&trans); + return ret; } void bch2_fs_quota_exit(struct bch_fs *c) @@ -452,7 +453,8 @@ int bch2_fs_quota_read(struct bch_fs *c) } bch2_trans_iter_exit(&trans, &iter); - return bch2_trans_exit(&trans) ?: ret; + bch2_trans_exit(&trans); + return ret; } /* Enable/disable/delete quotas for an entire filesystem: */ |