mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
quota: constify struct path in quota_on
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
a4141d7cf8
commit
8c54ca9c68
6 changed files with 9 additions and 9 deletions
|
|
@ -2401,7 +2401,7 @@ int dquot_resume(struct super_block *sb, int type)
|
|||
EXPORT_SYMBOL(dquot_resume);
|
||||
|
||||
int dquot_quota_on(struct super_block *sb, int type, int format_id,
|
||||
struct path *path)
|
||||
const struct path *path)
|
||||
{
|
||||
int error = security_quota_on(path->dentry);
|
||||
if (error)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ unsigned int qtype_enforce_flag(int type)
|
|||
}
|
||||
|
||||
static int quota_quotaon(struct super_block *sb, int type, qid_t id,
|
||||
struct path *path)
|
||||
const struct path *path)
|
||||
{
|
||||
if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable)
|
||||
return -ENOSYS;
|
||||
|
|
@ -700,7 +700,7 @@ static int quota_rmxquota(struct super_block *sb, void __user *addr)
|
|||
|
||||
/* Copy parameters and call proper function */
|
||||
static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id,
|
||||
void __user *addr, struct path *path)
|
||||
void __user *addr, const struct path *path)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue