aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dquot.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dquot.c')
-rw-r--r--fs/dquot.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/fs/dquot.c b/fs/dquot.c
index 3995ce7907cc..37212b039a4a 100644
--- a/fs/dquot.c
+++ b/fs/dquot.c
@@ -1519,14 +1519,22 @@ out_path:
1519 * This function is used when filesystem needs to initialize quotas 1519 * This function is used when filesystem needs to initialize quotas
1520 * during mount time. 1520 * during mount time.
1521 */ 1521 */
1522int vfs_quota_on_mount(int type, int format_id, struct dentry *dentry) 1522int vfs_quota_on_mount(struct super_block *sb, char *qf_name,
1523 int format_id, int type)
1523{ 1524{
1525 struct dentry *dentry;
1524 int error; 1526 int error;
1525 1527
1528 dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name));
1529 if (IS_ERR(dentry))
1530 return PTR_ERR(dentry);
1531
1526 error = security_quota_on(dentry); 1532 error = security_quota_on(dentry);
1527 if (error) 1533 if (!error)
1528 return error; 1534 error = vfs_quota_on_inode(dentry->d_inode, type, format_id);
1529 return vfs_quota_on_inode(dentry->d_inode, type, format_id); 1535
1536 dput(dentry);
1537 return error;
1530} 1538}
1531 1539
1532/* Generic routine for getting common part of quota structure */ 1540/* Generic routine for getting common part of quota structure */