Skip to content

Commit

Permalink
reset project quota/cmn_err
Browse files Browse the repository at this point in the history
Signed-off-by: George Amanakis <[email protected]>
  • Loading branch information
gamanakis committed Mar 3, 2021
1 parent 9132142 commit 1ef7f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions module/zfs/dmu_objset.c
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,7 @@ dmu_objset_space_upgrade(objset_t *os)
*/

for (obj = 0; err == 0; err = dmu_object_next(os, &obj, FALSE, 0)) {
cmn_err(CE_NOTE, "space upgrade: %llu", obj);
dmu_tx_t *tx;
dmu_buf_t *db;
int objerr;
Expand Down
2 changes: 2 additions & 0 deletions module/zfs/dsl_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2104,6 +2104,7 @@ dsl_crypto_recv_raw_objset_sync(dsl_dataset_t *ds, dmu_objset_type_t ostype,
*/
os->os_phys->os_flags &= ~OBJSET_FLAG_USERACCOUNTING_COMPLETE;
os->os_phys->os_flags &= ~OBJSET_FLAG_USEROBJACCOUNTING_COMPLETE;
os->os_phys->os_flags &= ~OBJSET_FLAG_PROJECTQUOTA_COMPLETE;
os->os_flags = os->os_phys->os_flags;
os->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE;

Expand All @@ -2112,6 +2113,7 @@ dsl_crypto_recv_raw_objset_sync(dsl_dataset_t *ds, dmu_objset_type_t ostype,
*/
dmu_object_free(os, DMU_USERUSED_OBJECT, tx);
dmu_object_free(os, DMU_GROUPUSED_OBJECT, tx);
dmu_object_free(os, DMU_PROJECTUSED_OBJECT, tx);

/* set metadnode compression and checksum */
mdn->dn_compress = compress;
Expand Down

0 comments on commit 1ef7f60

Please sign in to comment.