summaryrefslogtreecommitdiffstats
path: root/fs/hppfs/hppfs.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-26 18:48:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-26 20:22:07 -0400
commit9ec3a646fe09970f801ab15e0f1694060b9f19af (patch)
tree697058ca7e1671eda180a3ccc62445686fbc1a31 /fs/hppfs/hppfs.c
parentc8b3fd0ce313443731e8fd6d5a541085eb465f99 (diff)
parent3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull fourth vfs update from Al Viro: "d_inode() annotations from David Howells (sat in for-next since before the beginning of merge window) + four assorted fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: RCU pathwalk breakage when running into a symlink overmounting something fix I_DIO_WAKEUP definition direct-io: only inc/dec inode->i_dio_count for file systems fs/9p: fix readdir() VFS: assorted d_backing_inode() annotations VFS: fs/inode.c helpers: d_inode() annotations VFS: fs/cachefiles: d_backing_inode() annotations VFS: fs library helpers: d_inode() annotations VFS: assorted weird filesystems: d_inode() annotations VFS: normal filesystems (and lustre): d_inode() annotations VFS: security/: d_inode() annotations VFS: security/: d_backing_inode() annotations VFS: net/: d_inode() annotations VFS: net/unix: d_backing_inode() annotations VFS: kernel/: d_inode() annotations VFS: audit: d_backing_inode() annotations VFS: Fix up some ->d_inode accesses in the chelsio driver VFS: Cachefiles should perform fs modifications on the top layer only VFS: AF_UNIX sockets should call mknod on the top layer only
Diffstat (limited to 'fs/hppfs/hppfs.c')
-rw-r--r--fs/hppfs/hppfs.c20
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 = {
637static int hppfs_readlink(struct dentry *dentry, char __user *buffer, 637static 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
645static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd) 645static 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
652static void hppfs_put_link(struct dentry *dentry, struct nameidata *nd, 652static 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
661static const struct inode_operations hppfs_dir_iops = { 661static const struct inode_operations hppfs_dir_iops = {
@@ -670,7 +670,7 @@ static const struct inode_operations hppfs_link_iops = {
670 670
671static struct inode *get_inode(struct super_block *sb, struct dentry *dentry) 671static 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) {