diff options
author | David Howells <dhowells@redhat.com> | 2015-03-17 22:26:15 +0000 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:06:58 -0400 |
commit | dea655c28a32ac760c057383dadb5be0f5632362 (patch) | |
tree | 1bbbed2ea1d1ca3871b6e5273fbf58c304c32ad9 /fs/quota | |
parent | 75c3cfa855dcedc84e7964269c9b6baf26137959 (diff) | |
download | linux-dea655c28a32ac760c057383dadb5be0f5632362.tar.gz linux-dea655c28a32ac760c057383dadb5be0f5632362.tar.bz2 linux-dea655c28a32ac760c057383dadb5be0f5632362.zip |
VFS: fs library helpers: d_inode() annotations
library helpers called by filesystem drivers on their own inodes
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/dquot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 0ccd4ba3a246..3a5f01319379 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -2299,7 +2299,7 @@ int dquot_quota_on(struct super_block *sb, int type, int format_id, if (path->dentry->d_sb != sb) error = -EXDEV; else - error = vfs_load_quota_inode(path->dentry->d_inode, type, + error = vfs_load_quota_inode(d_inode(path->dentry), type, format_id, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); return error; @@ -2363,20 +2363,20 @@ int dquot_quota_on_mount(struct super_block *sb, char *qf_name, struct dentry *dentry; int error; - mutex_lock(&sb->s_root->d_inode->i_mutex); + mutex_lock(&d_inode(sb->s_root)->i_mutex); dentry = lookup_one_len(qf_name, sb->s_root, strlen(qf_name)); - mutex_unlock(&sb->s_root->d_inode->i_mutex); + mutex_unlock(&d_inode(sb->s_root)->i_mutex); if (IS_ERR(dentry)) return PTR_ERR(dentry); - if (!dentry->d_inode) { + if (d_really_is_negative(dentry)) { error = -ENOENT; goto out; } error = security_quota_on(dentry); if (!error) - error = vfs_load_quota_inode(dentry->d_inode, type, format_id, + error = vfs_load_quota_inode(d_inode(dentry), type, format_id, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); out: |