]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove zfs_getattr and convoff dead code
authorDirkjan Bussink <d.bussink@gmail.com>
Mon, 24 Feb 2020 23:38:23 +0000 (00:38 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2020 23:38:22 +0000 (15:38 -0800)
commit327000ce04b4243f140a38647dca59683d39b8e7
treebcaf39829c2492abe4d6f95dbfba97fbb7df6511
parent92bd4cabd615684d1fa476f56e73e0d9edf9a902
Remove zfs_getattr and convoff dead code

The `convoff` function is called only in one code path in `zfs_space`.
Each caller of `zfs_space` is called with a `flock64_t` that has
`l_whence` set to `SEEK_SET`. This means that `convoff` always results
in a no-op as the `bfp` parameter has `l_whence` set to `SEEK_SET` and
`int whence` is `SEEK_SET` as well.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Closes #10006
include/os/linux/zfs/sys/zfs_vnops.h
include/sys/dmu.h
module/os/linux/zfs/zfs_vnops.c
module/zfs/dmu.c