nilfs2: add compat ioctl
The current FS_IOC_GETFLAGS/SETFLAGS/GETVERSION will fail if application is 32 bit and kernel is 64 bit. This issue is avoidable by adding compat_ioctl method. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
@@ -681,7 +681,7 @@ const struct file_operations nilfs_dir_operations = {
|
||||
.readdir = nilfs_readdir,
|
||||
.unlocked_ioctl = nilfs_ioctl,
|
||||
#ifdef CONFIG_COMPAT
|
||||
.compat_ioctl = nilfs_ioctl,
|
||||
.compat_ioctl = nilfs_compat_ioctl,
|
||||
#endif /* CONFIG_COMPAT */
|
||||
.fsync = nilfs_sync_file,
|
||||
|
||||
|
Reference in New Issue
Block a user