summaryrefslogtreecommitdiff
path: root/fs/hpfs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-03 13:51:58 +0200
committerArnd Bergmann <arnd@arndb.de>2019-10-23 17:23:46 +0200
commit314999dcbca75c3ca8aaba102875d51ab409cf87 (patch)
tree4318122d01053f85ed56f7dfefcfe8e9127dbf03 /fs/hpfs
parent8d0980704842e8a68df2c3164c1c165e5c7ebc08 (diff)
downloadlwn-314999dcbca75c3ca8aaba102875d51ab409cf87.tar.gz
lwn-314999dcbca75c3ca8aaba102875d51ab409cf87.zip
fs: compat_ioctl: move FITRIM emulation into file systems
Remove the special case for FITRIM, and make file systems handle that like all other ioctl commands with their own handlers. Cc: linux-ext4@vger.kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Cc: linux-nilfs@vger.kernel.org Cc: ocfs2-devel@oss.oracle.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'fs/hpfs')
-rw-r--r--fs/hpfs/dir.c1
-rw-r--r--fs/hpfs/file.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/hpfs/dir.c b/fs/hpfs/dir.c
index d85230c84ef2..f32f15669996 100644
--- a/fs/hpfs/dir.c
+++ b/fs/hpfs/dir.c
@@ -325,4 +325,5 @@ const struct file_operations hpfs_dir_ops =
.release = hpfs_dir_release,
.fsync = hpfs_file_fsync,
.unlocked_ioctl = hpfs_ioctl,
+ .compat_ioctl = compat_ptr_ioctl,
};
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c
index 1ecec124e76f..b36abf9cb345 100644
--- a/fs/hpfs/file.c
+++ b/fs/hpfs/file.c
@@ -215,6 +215,7 @@ const struct file_operations hpfs_file_ops =
.fsync = hpfs_file_fsync,
.splice_read = generic_file_splice_read,
.unlocked_ioctl = hpfs_ioctl,
+ .compat_ioctl = compat_ptr_ioctl,
};
const struct inode_operations hpfs_file_iops =