Date: Sat, 19 Jun 1999 10:29:07 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: freebsd-hackers@freebsd.org Subject: What does VOP_FREEBLKS() do? Message-ID: <Pine.GSO.3.96.990619095919.3111A-100000@sol.cs.binghamton.edu>
next in thread | raw e-mail | index | archive | help
I find in the routine ffs_blkfree() there is a new statement saying:
VOP_FREEBLKS(ip->i_devvp, fsbtodb(fs, bno), size);
which calls spec_freeblks() in file spec_vnops.c. The routine
spec_freeblks() looks simple. When D_CANFREE is set, it gets an empty
buffer and call strategy routine for the buffer. Since B_READ is not set,
we must call the strategy routine to write some data. But where is the
data for the buffer? Why we call VOP_FREEBLKS() at the time we are going
to free the blocks? BTW, this vnode operation is not listed in the man
pages.
Any help is appreciated.
--------------------------------------------------
Zhihui Zhang. Please visit http://www.freebsd.org
--------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990619095919.3111A-100000>
