fs/ntfs3: Add ioctl operation for directories (FITRIM)
[linux-block.git] / fs / ntfs3 / dir.c
index effa6accf8a850bea96fd369deb3c73f633aff51..5cf3d9decf646b1935517e8b564d807626e60e0f 100644 (file)
@@ -611,5 +611,9 @@ const struct file_operations ntfs_dir_operations = {
        .iterate_shared = ntfs_readdir,
        .fsync          = generic_file_fsync,
        .open           = ntfs_file_open,
+       .unlocked_ioctl = ntfs_ioctl,
+#ifdef CONFIG_COMPAT
+       .compat_ioctl   = ntfs_compat_ioctl,
+#endif
 };
 // clang-format on