[PATCH] switch quota_on-related stuff to kern_path()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2008-08-02 00:57:06 -04:00
orang tua 0a0d8a4675
melakukan 8264613def
4 mengubah file dengan 37 tambahan dan 37 penghapusan

Melihat File

@@ -1805,19 +1805,19 @@ int vfs_quota_on_path(struct super_block *sb, int type, int format_id,
}
/* Actual function called from quotactl() */
int vfs_quota_on(struct super_block *sb, int type, int format_id, char *path,
int vfs_quota_on(struct super_block *sb, int type, int format_id, char *name,
int remount)
{
struct nameidata nd;
struct path path;
int error;
if (remount)
return vfs_quota_on_remount(sb, type);
error = path_lookup(path, LOOKUP_FOLLOW, &nd);
error = kern_path(name, LOOKUP_FOLLOW, &path);
if (!error) {
error = vfs_quota_on_path(sb, type, format_id, &nd.path);
path_put(&nd.path);
error = vfs_quota_on_path(sb, type, format_id, &path);
path_put(&path);
}
return error;
}