]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Currently the breadn_flags() and getblkx() interfaces are passed
authormckusick <mckusick@FreeBSD.org>
Tue, 3 Dec 2019 23:07:09 +0000 (23:07 +0000)
committermckusick <mckusick@FreeBSD.org>
Tue, 3 Dec 2019 23:07:09 +0000 (23:07 +0000)
commitd137f582638f52b27876ca1ffdb19e1b2bae3de3
treefb2915436c181ae2982036d837a8fe469dd7ec10
parent49cbef7749a35e005370f0498a5906a4cb042935
Currently the breadn_flags() and getblkx() interfaces are passed
the vnode, logical block number, and size of data block that is
being requested. They then use the VOP_BMAP function to calculate
the mapping from logical block number to physical block number from
which to access the data. This change expands the interface to also
pass the physical block number in cases where the VOP_MAP function
may no longer work, for example when a file is being truncated.

No functional change.

Reviewed by:  kib
Tested by:    Peter Holm
Sponsored by: Netflix
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/sys/buf.h
sys/ufs/ffs/ffs_alloc.c
sys/ufs/ffs/ffs_inode.c
sys/ufs/ffs/ffs_softdep.c
sys/ufs/ffs/ffs_vnops.c