diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-03-04 15:54:05 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-04-02 14:15:47 -0400 |
commit | ab0d1e85bfd0c25260f02cd3708d5abdfb5b5a9c (patch) | |
tree | 8603d1aab505a1c8c023576cb599e1b541ebc944 /fs/quota | |
parent | cb0b476ab12ca3bd9dd9122047660f3a73e8d647 (diff) |
fs/quota: use COMPAT_SYSCALL_DEFINE for sys32_quotactl()
While sys32_quotactl() is only needed on x86, it can use the recommended
COMPAT_SYSCALL_DEFINEx() machinery for its setup.
Acked-by: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/compat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/quota/compat.c b/fs/quota/compat.c index 1577a2fd51f4..c30572857619 100644 --- a/fs/quota/compat.c +++ b/fs/quota/compat.c | |||
@@ -41,8 +41,9 @@ struct compat_fs_quota_stat { | |||
41 | __u16 qs_iwarnlimit; | 41 | __u16 qs_iwarnlimit; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special, | 44 | COMPAT_SYSCALL_DEFINE4(quotactl32, unsigned int, cmd, |
45 | qid_t id, void __user *addr) | 45 | const char __user *, special, qid_t, id, |
46 | void __user *, addr) | ||
46 | { | 47 | { |
47 | unsigned int cmds; | 48 | unsigned int cmds; |
48 | struct if_dqblk __user *dqblk; | 49 | struct if_dqblk __user *dqblk; |