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>
This commit is contained in:
@@ -345,8 +345,6 @@ static int ppp_scompress(struct file *file, unsigned int cmd,
|
||||
static unsigned int ioctl_pointer[] = {
|
||||
/* Little t */
|
||||
COMPATIBLE_IOCTL(TIOCOUTQ)
|
||||
/* 'X' - originally XFS but some now in the VFS */
|
||||
COMPATIBLE_IOCTL(FITRIM)
|
||||
#ifdef CONFIG_BLOCK
|
||||
/* Big S */
|
||||
COMPATIBLE_IOCTL(SCSI_IOCTL_GET_IDLUN)
|
||||
|
Reference in New Issue
Block a user