mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
nfs: offer native ioctls even if CONFIG_COMPAT is set
Without this for example 64-bit binaries on typical amd64 distributions would not be able to use ioctls on NFS. For now this only affects clones. Additionally ->compat_ioctl is defined even for non-compat builds, so get rid of the pointless ifdef. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
9494b2ce4b
commit
3a2e176905
1 changed files with 0 additions and 3 deletions
|
@ -347,9 +347,6 @@ const struct file_operations nfs4_file_operations = {
|
||||||
#endif /* CONFIG_NFS_V4_2 */
|
#endif /* CONFIG_NFS_V4_2 */
|
||||||
.check_flags = nfs_check_flags,
|
.check_flags = nfs_check_flags,
|
||||||
.setlease = simple_nosetlease,
|
.setlease = simple_nosetlease,
|
||||||
#ifdef CONFIG_COMPAT
|
|
||||||
.unlocked_ioctl = nfs4_ioctl,
|
.unlocked_ioctl = nfs4_ioctl,
|
||||||
#else
|
|
||||||
.compat_ioctl = nfs4_ioctl,
|
.compat_ioctl = nfs4_ioctl,
|
||||||
#endif /* CONFIG_COMPAT */
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue