quota.c (07fa3fa2572f2dee85beb8137f90ccf33d7206af) quota.c (41c4f85cdac280d356df1f483000ecec4a8868be)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Quota code necessary even when VFS quota support is not compiled
4 * into the kernel. The interesting stuff is over in dquot.c, here
5 * we have symbols for initial quotactl(2) handling, the sysctl(2)
6 * variables, etc - things needed even when quota support disabled.
7 */
8

--- 777 unchanged lines hidden (view full) ---

786 }
787 return 1;
788}
789#endif /* CONFIG_BLOCK */
790
791/* Return true if quotactl command is manipulating quota on/off state */
792static bool quotactl_cmd_onoff(int cmd)
793{
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Quota code necessary even when VFS quota support is not compiled
4 * into the kernel. The interesting stuff is over in dquot.c, here
5 * we have symbols for initial quotactl(2) handling, the sysctl(2)
6 * variables, etc - things needed even when quota support disabled.
7 */
8

--- 777 unchanged lines hidden (view full) ---

786 }
787 return 1;
788}
789#endif /* CONFIG_BLOCK */
790
791/* Return true if quotactl command is manipulating quota on/off state */
792static bool quotactl_cmd_onoff(int cmd)
793{
794 return (cmd == Q_QUOTAON) || (cmd == Q_QUOTAOFF);
794 return (cmd == Q_QUOTAON) || (cmd == Q_QUOTAOFF) ||
795 (cmd == Q_XQUOTAON) || (cmd == Q_XQUOTAOFF);
795}
796
797/*
798 * look up a superblock on which quota ops will be performed
799 * - use the name of a block device to find the superblock thereon
800 */
801static struct super_block *quotactl_block(const char __user *special, int cmd)
802{

--- 91 unchanged lines hidden ---
796}
797
798/*
799 * look up a superblock on which quota ops will be performed
800 * - use the name of a block device to find the superblock thereon
801 */
802static struct super_block *quotactl_block(const char __user *special, int cmd)
803{

--- 91 unchanged lines hidden ---