···552552 s.v = v + 1;553553 s.defined = true;554554 } else {555555+ /*556556+ * Check if this option was set on the parent - if so, switched557557+ * back to inheriting from the parent:558558+ *559559+ * rename() also has to deal with keeping inherited options up560560+ * to date - see bch2_reinherit_attrs()561561+ */562562+ spin_lock(&dentry->d_lock);555563 if (!IS_ROOT(dentry)) {556564 struct bch_inode_info *dir =557565 to_bch_ei(d_inode(dentry->d_parent));···568560 } else {569561 s.v = 0;570562 }563563+ spin_unlock(&dentry->d_lock);571564572565 s.defined = false;573566 }