diff options
author | David Howells <dhowells@redhat.com> | 2015-03-17 18:25:59 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:06:57 -0400 |
commit | 2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch) | |
tree | 98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/hppfs | |
parent | ce0b16ddf18df35026164fda4a642ef10c01f442 (diff) |
VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hppfs')
-rw-r--r-- | fs/hppfs/hppfs.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/hppfs/hppfs.c b/fs/hppfs/hppfs.c index 043ac9d77262..fa2bd5366ecf 100644 --- a/fs/hppfs/hppfs.c +++ b/fs/hppfs/hppfs.c | |||
@@ -153,9 +153,9 @@ static struct dentry *hppfs_lookup(struct inode *ino, struct dentry *dentry, | |||
153 | return ERR_PTR(-ENOENT); | 153 | return ERR_PTR(-ENOENT); |
154 | 154 | ||
155 | parent = HPPFS_I(ino)->proc_dentry; | 155 | parent = HPPFS_I(ino)->proc_dentry; |
156 | mutex_lock(&parent->d_inode->i_mutex); | 156 | mutex_lock(&d_inode(parent)->i_mutex); |
157 | proc_dentry = lookup_one_len(name->name, parent, name->len); | 157 | proc_dentry = lookup_one_len(name->name, parent, name->len); |
158 | mutex_unlock(&parent->d_inode->i_mutex); | 158 | mutex_unlock(&d_inode(parent)->i_mutex); |
159 | 159 | ||
160 | if (IS_ERR(proc_dentry)) | 160 | if (IS_ERR(proc_dentry)) |
161 | return proc_dentry; | 161 | return proc_dentry; |
@@ -637,25 +637,25 @@ static const struct super_operations hppfs_sbops = { | |||
637 | static int hppfs_readlink(struct dentry *dentry, char __user *buffer, | 637 | static int hppfs_readlink(struct dentry *dentry, char __user *buffer, |
638 | int buflen) | 638 | int buflen) |
639 | { | 639 | { |
640 | struct dentry *proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry; | 640 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; |
641 | return proc_dentry->d_inode->i_op->readlink(proc_dentry, buffer, | 641 | return d_inode(proc_dentry)->i_op->readlink(proc_dentry, buffer, |
642 | buflen); | 642 | buflen); |
643 | } | 643 | } |
644 | 644 | ||
645 | static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd) | 645 | static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd) |
646 | { | 646 | { |
647 | struct dentry *proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry; | 647 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; |
648 | 648 | ||
649 | return proc_dentry->d_inode->i_op->follow_link(proc_dentry, nd); | 649 | return d_inode(proc_dentry)->i_op->follow_link(proc_dentry, nd); |
650 | } | 650 | } |
651 | 651 | ||
652 | static void hppfs_put_link(struct dentry *dentry, struct nameidata *nd, | 652 | static void hppfs_put_link(struct dentry *dentry, struct nameidata *nd, |
653 | void *cookie) | 653 | void *cookie) |
654 | { | 654 | { |
655 | struct dentry *proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry; | 655 | struct dentry *proc_dentry = HPPFS_I(d_inode(dentry))->proc_dentry; |
656 | 656 | ||
657 | if (proc_dentry->d_inode->i_op->put_link) | 657 | if (d_inode(proc_dentry)->i_op->put_link) |
658 | proc_dentry->d_inode->i_op->put_link(proc_dentry, nd, cookie); | 658 | d_inode(proc_dentry)->i_op->put_link(proc_dentry, nd, cookie); |
659 | } | 659 | } |
660 | 660 | ||
661 | static const struct inode_operations hppfs_dir_iops = { | 661 | static const struct inode_operations hppfs_dir_iops = { |
@@ -670,7 +670,7 @@ static const struct inode_operations hppfs_link_iops = { | |||
670 | 670 | ||
671 | static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) | 671 | static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) |
672 | { | 672 | { |
673 | struct inode *proc_ino = dentry->d_inode; | 673 | struct inode *proc_ino = d_inode(dentry); |
674 | struct inode *inode = new_inode(sb); | 674 | struct inode *inode = new_inode(sb); |
675 | 675 | ||
676 | if (!inode) { | 676 | if (!inode) { |