Skip to content

Commit 919cc96

Browse files
Hongbo Lirichardweinberger
authored andcommitted
ubifs: remove unused ioctl flags GETFLAGS/SETFLAGS
In the ubifs, ubifs_fileattr_get and ubifs_fileattr_set have been implemented, GETFLAGS and SETFLAGS ioctl are not handled in filesystem's own ioctl helper. Additionally, these flags' cases are not handled in ubifs's ioctl helper, so we can remove them. Signed-off-by: Hongbo Li <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent d969811 commit 919cc96

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/ubifs/ioctl.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,6 @@ long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
213213
long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
214214
{
215215
switch (cmd) {
216-
case FS_IOC32_GETFLAGS:
217-
cmd = FS_IOC_GETFLAGS;
218-
break;
219-
case FS_IOC32_SETFLAGS:
220-
cmd = FS_IOC_SETFLAGS;
221-
break;
222216
case FS_IOC_SET_ENCRYPTION_POLICY:
223217
case FS_IOC_GET_ENCRYPTION_POLICY:
224218
case FS_IOC_GET_ENCRYPTION_POLICY_EX:

0 commit comments

Comments
 (0)