summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-03-08 20:27:20 +0000
committerjhb <jhb@FreeBSD.org>2012-03-08 20:27:20 +0000
commit19feaba08bc6b84c117bd21cc71e139c6d086ed7 (patch)
tree8f19e446f40b0494d383b5102ee060aeb4617503 /sys/fs
parent4fea355eb2254754b2e522d87d81c5562252116a (diff)
downloadFreeBSD-src-19feaba08bc6b84c117bd21cc71e139c6d086ed7.zip
FreeBSD-src-19feaba08bc6b84c117bd21cc71e139c6d086ed7.tar.gz
Add KTR_VFS traces to track modifications to a vnode's writecount.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/unionfs/union_subr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c
index 2e74844..074958c 100644
--- a/sys/fs/unionfs/union_subr.c
+++ b/sys/fs/unionfs/union_subr.c
@@ -952,6 +952,8 @@ unionfs_vn_create_on_upper(struct vnode **vpp, struct vnode *udvp,
goto unionfs_vn_create_on_upper_free_out1;
}
vp->v_writecount++;
+ CTR3(KTR_VFS, "%s: vp %p v_writecount increased to %d", __func__, vp,
+ vp->v_writecount);
*vpp = vp;
unionfs_vn_create_on_upper_free_out1:
@@ -1087,6 +1089,8 @@ unionfs_copyfile(struct unionfs_node *unp, int docopy, struct ucred *cred,
}
VOP_CLOSE(uvp, FWRITE, cred, td);
uvp->v_writecount--;
+ CTR3(KTR_VFS, "%s: vp %p v_writecount decreased to %d", __func__, uvp,
+ uvp->v_writecount);
vn_finished_write(mp);
OpenPOWER on IntegriCloud