mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
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
This commit is contained in:
@@ -2365,7 +2365,6 @@ dmu_object_info_from_db(dmu_buf_t *db_fake, dmu_object_info_t *doi)
|
||||
|
||||
/*
|
||||
* Faster still when you only care about the size.
|
||||
* This is specifically optimized for zfs_getattr().
|
||||
*/
|
||||
void
|
||||
dmu_object_size_from_db(dmu_buf_t *db_fake, uint32_t *blksize,
|
||||
|
||||
Reference in New Issue
Block a user