Remove dead code

Delete unused functions.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10470
This commit is contained in:
Arvind Sankar
2020-06-15 14:26:43 -04:00
committed by Brian Behlendorf
parent 65c7cc49bf
commit c3fe42aabd
16 changed files with 2 additions and 263 deletions
-19
View File
@@ -4562,25 +4562,6 @@ zfs_inactive(struct inode *ip)
rw_exit(&zfsvfs->z_teardown_inactive_lock);
}
/*
* Bounds-check the seek operation.
*
* IN: ip - inode seeking within
* ooff - old file offset
* noffp - pointer to new file offset
*
* RETURN: 0 if success
* EINVAL if new offset invalid
*/
/* ARGSUSED */
int
zfs_seek(struct inode *ip, offset_t ooff, offset_t *noffp)
{
if (S_ISDIR(ip->i_mode))
return (0);
return ((*noffp < 0 || *noffp > MAXOFFSET_T) ? EINVAL : 0);
}
/*
* Fill pages with data from the disk.
*/
-6
View File
@@ -713,12 +713,6 @@ zvol_find_by_dev(dev_t dev)
return (NULL);
}
void
zvol_validate_dev(zvol_state_t *zv)
{
ASSERT3U(MINOR(zv->zv_zso->zvo_dev) & ZVOL_MINOR_MASK, ==, 0);
}
static struct kobject *
zvol_probe(dev_t dev, int *part, void *arg)
{