Commit e9be2ac7 authored by Theodore Ts'o's avatar Theodore Ts'o

ext4: rename EXT4_IOC_GOINGDOWN to EXT4_IOC_SHUTDOWN

It's very likely the file system independent ioctl name will be
FS_IOC_SHUTDOWN, so let's use the same name for the ext4 ioctl name.
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 2ba3e6e8
...@@ -679,7 +679,7 @@ struct fsxattr { ...@@ -679,7 +679,7 @@ struct fsxattr {
#define EXT4_IOC_FSGETXATTR FS_IOC_FSGETXATTR #define EXT4_IOC_FSGETXATTR FS_IOC_FSGETXATTR
#define EXT4_IOC_FSSETXATTR FS_IOC_FSSETXATTR #define EXT4_IOC_FSSETXATTR FS_IOC_FSSETXATTR
#define EXT4_IOC_GOINGDOWN _IOR ('X', 125, __u32) #define EXT4_IOC_SHUTDOWN _IOR ('X', 125, __u32)
/* /*
* Flags for going down operation * Flags for going down operation
......
...@@ -443,7 +443,7 @@ static inline unsigned long ext4_xflags_to_iflags(__u32 xflags) ...@@ -443,7 +443,7 @@ static inline unsigned long ext4_xflags_to_iflags(__u32 xflags)
return iflags; return iflags;
} }
int ext4_goingdown(struct super_block *sb, unsigned long arg) int ext4_shutdown(struct super_block *sb, unsigned long arg)
{ {
struct ext4_sb_info *sbi = EXT4_SB(sb); struct ext4_sb_info *sbi = EXT4_SB(sb);
__u32 flags; __u32 flags;
...@@ -940,8 +940,8 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -940,8 +940,8 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
return 0; return 0;
} }
case EXT4_IOC_GOINGDOWN: case EXT4_IOC_SHUTDOWN:
return ext4_goingdown(sb, arg); return ext4_shutdown(sb, arg);
default: default:
return -ENOTTY; return -ENOTTY;
} }
...@@ -1008,7 +1008,7 @@ long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -1008,7 +1008,7 @@ long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case EXT4_IOC_SET_ENCRYPTION_POLICY: case EXT4_IOC_SET_ENCRYPTION_POLICY:
case EXT4_IOC_GET_ENCRYPTION_PWSALT: case EXT4_IOC_GET_ENCRYPTION_PWSALT:
case EXT4_IOC_GET_ENCRYPTION_POLICY: case EXT4_IOC_GET_ENCRYPTION_POLICY:
case EXT4_IOC_GOINGDOWN: case EXT4_IOC_SHUTDOWN:
break; break;
default: default:
return -ENOIOCTLCMD; return -ENOIOCTLCMD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment