Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2928
b: refs/heads/master
c: 2fa389c
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Jun 23, 2005
1 parent 940c71e commit 7bf2f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84de856ed30c568c2bb7b9ac0679772bd2737d9b
refs/heads/master: 2fa389c5eb8c97d621653184d2adf5fdbd4a3167
9 changes: 1 addition & 8 deletions trunk/fs/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1522,24 +1522,17 @@ int vfs_quota_on(struct super_block *sb, int type, int format_id, char *path)
int vfs_quota_on_mount(struct super_block *sb, char *qf_name,
int format_id, int type)
{
struct qstr name = {.name = qf_name, .len = 0, .len = strlen(qf_name)};
struct dentry *dentry;
int error;

dentry = lookup_hash(&name, sb->s_root);
dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name));
if (IS_ERR(dentry))
return PTR_ERR(dentry);

error = security_quota_on(dentry);
if (!error)
error = vfs_quota_on_inode(dentry->d_inode, type, format_id);

/*
* Now invalidate and put the dentry - quota got its own reference
* to inode and dentry has at least wrong hash so we had better
* throw it away.
*/
d_invalidate(dentry);
dput(dentry);
return error;
}
Expand Down

0 comments on commit 7bf2f53

Please sign in to comment.