mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Remove unused MMAP functions
The following functions were required for the OpenSolaris mmap implementation. Because the Linux VFS does most the most heavy lifting for us they are not required and are being removed to keep the code clean and easy to understand. * zfs_null_putapage() * zfs_frlock() * zfs_no_putpage() Signed-off-by: Brian Behlendorf <behlendorf@llnl.gov>
This commit is contained in:
@@ -1119,22 +1119,6 @@ zfs_grow_blocksize(znode_t *zp, uint64_t size, dmu_tx_t *tx)
|
||||
dmu_object_size_from_db(sa_get_db(zp->z_sa_hdl), &zp->z_blksz, &dummy);
|
||||
}
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
/*
|
||||
* This is a dummy interface used when pvn_vplist_dirty() should *not*
|
||||
* be calling back into the fs for a putpage(). E.g.: when truncating
|
||||
* a file, the pages being "thrown away* don't need to be written out.
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
zfs_no_putpage(vnode_t *vp, page_t *pp, u_offset_t *offp, size_t *lenp,
|
||||
int flags, cred_t *cr)
|
||||
{
|
||||
ASSERT(0);
|
||||
return (0);
|
||||
}
|
||||
#endif /* HAVE_MMAP */
|
||||
|
||||
/*
|
||||
* Increase the file length
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user