mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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:
committed by
Brian Behlendorf
parent
65c7cc49bf
commit
c3fe42aabd
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user