diff options
author | Dirkjan Bussink <[email protected]> | 2020-02-25 00:38:23 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-24 15:38:22 -0800 |
commit | 327000ce04b4243f140a38647dca59683d39b8e7 (patch) | |
tree | bcaf39829c2492abe4d6f95dbfba97fbb7df6511 /include/os | |
parent | 92bd4cabd615684d1fa476f56e73e0d9edf9a902 (diff) |
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 <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Dirkjan Bussink <[email protected]>
Closes #10006
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/linux/zfs/sys/zfs_vnops.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/os/linux/zfs/sys/zfs_vnops.h b/include/os/linux/zfs/sys/zfs_vnops.h index b05bb00b7..24a2082d3 100644 --- a/include/os/linux/zfs/sys/zfs_vnops.h +++ b/include/os/linux/zfs/sys/zfs_vnops.h @@ -59,7 +59,6 @@ extern int zfs_rmdir(znode_t *dzp, char *name, znode_t *cwd, cred_t *cr, int flags); extern int zfs_readdir(struct inode *ip, zpl_dir_context_t *ctx, cred_t *cr); extern int zfs_fsync(znode_t *zp, int syncflag, cred_t *cr); -extern int zfs_getattr(struct inode *ip, vattr_t *vap, int flag, cred_t *cr); extern int zfs_getattr_fast(struct inode *ip, struct kstat *sp); extern int zfs_setattr(znode_t *zp, vattr_t *vap, int flag, cred_t *cr); extern int zfs_rename(znode_t *sdzp, char *snm, znode_t *tdzp, |