Skip to content

Commit

Permalink
afs: Print the operation debug_id when logging an unexpected data ver…
Browse files Browse the repository at this point in the history
  • Loading branch information
David Howells committed Apr 23, 2021
1 parent 67d78a6 commit f015cf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/afs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,12 @@ static void afs_apply_status(struct afs_operation *op,

if (vp->dv_before + vp->dv_delta != status->data_version) {
if (test_bit(AFS_VNODE_CB_PROMISED, &vnode->flags))
pr_warn("kAFS: vnode modified {%llx:%llu} %llx->%llx %s\n",
pr_warn("kAFS: vnode modified {%llx:%llu} %llx->%llx %s (op=%x)\n",
vnode->fid.vid, vnode->fid.vnode,
(unsigned long long)vp->dv_before + vp->dv_delta,
(unsigned long long)status->data_version,
op->type ? op->type->name : "???");
op->type ? op->type->name : "???",
op->debug_id);

vnode->invalid_before = status->data_version;
if (vnode->status.type == AFS_FTYPE_DIR) {
Expand Down

0 comments on commit f015cf1

Please sign in to comment.