diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 18:48:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 20:22:07 -0400 |
commit | 9ec3a646fe09970f801ab15e0f1694060b9f19af (patch) | |
tree | 697058ca7e1671eda180a3ccc62445686fbc1a31 /drivers/oprofile | |
parent | c8b3fd0ce313443731e8fd6d5a541085eb465f99 (diff) | |
parent | 3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 (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 'drivers/oprofile')
-rw-r--r-- | drivers/oprofile/oprofilefs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index 3f493459378f..dd92c5edf219 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
@@ -138,22 +138,22 @@ static int __oprofilefs_create_file(struct dentry *root, char const *name, | |||
138 | struct dentry *dentry; | 138 | struct dentry *dentry; |
139 | struct inode *inode; | 139 | struct inode *inode; |
140 | 140 | ||
141 | mutex_lock(&root->d_inode->i_mutex); | 141 | mutex_lock(&d_inode(root)->i_mutex); |
142 | dentry = d_alloc_name(root, name); | 142 | dentry = d_alloc_name(root, name); |
143 | if (!dentry) { | 143 | if (!dentry) { |
144 | mutex_unlock(&root->d_inode->i_mutex); | 144 | mutex_unlock(&d_inode(root)->i_mutex); |
145 | return -ENOMEM; | 145 | return -ENOMEM; |
146 | } | 146 | } |
147 | inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); | 147 | inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); |
148 | if (!inode) { | 148 | if (!inode) { |
149 | dput(dentry); | 149 | dput(dentry); |
150 | mutex_unlock(&root->d_inode->i_mutex); | 150 | mutex_unlock(&d_inode(root)->i_mutex); |
151 | return -ENOMEM; | 151 | return -ENOMEM; |
152 | } | 152 | } |
153 | inode->i_fop = fops; | 153 | inode->i_fop = fops; |
154 | inode->i_private = priv; | 154 | inode->i_private = priv; |
155 | d_add(dentry, inode); | 155 | d_add(dentry, inode); |
156 | mutex_unlock(&root->d_inode->i_mutex); | 156 | mutex_unlock(&d_inode(root)->i_mutex); |
157 | return 0; | 157 | return 0; |
158 | } | 158 | } |
159 | 159 | ||
@@ -215,22 +215,22 @@ struct dentry *oprofilefs_mkdir(struct dentry *parent, char const *name) | |||
215 | struct dentry *dentry; | 215 | struct dentry *dentry; |
216 | struct inode *inode; | 216 | struct inode *inode; |
217 | 217 | ||
218 | mutex_lock(&parent->d_inode->i_mutex); | 218 | mutex_lock(&d_inode(parent)->i_mutex); |
219 | dentry = d_alloc_name(parent, name); | 219 | dentry = d_alloc_name(parent, name); |
220 | if (!dentry) { | 220 | if (!dentry) { |
221 | mutex_unlock(&parent->d_inode->i_mutex); | 221 | mutex_unlock(&d_inode(parent)->i_mutex); |
222 | return NULL; | 222 | return NULL; |
223 | } | 223 | } |
224 | inode = oprofilefs_get_inode(parent->d_sb, S_IFDIR | 0755); | 224 | inode = oprofilefs_get_inode(parent->d_sb, S_IFDIR | 0755); |
225 | if (!inode) { | 225 | if (!inode) { |
226 | dput(dentry); | 226 | dput(dentry); |
227 | mutex_unlock(&parent->d_inode->i_mutex); | 227 | mutex_unlock(&d_inode(parent)->i_mutex); |
228 | return NULL; | 228 | return NULL; |
229 | } | 229 | } |
230 | inode->i_op = &simple_dir_inode_operations; | 230 | inode->i_op = &simple_dir_inode_operations; |
231 | inode->i_fop = &simple_dir_operations; | 231 | inode->i_fop = &simple_dir_operations; |
232 | d_add(dentry, inode); | 232 | d_add(dentry, inode); |
233 | mutex_unlock(&parent->d_inode->i_mutex); | 233 | mutex_unlock(&d_inode(parent)->i_mutex); |
234 | return dentry; | 234 | return dentry; |
235 | } | 235 | } |
236 | 236 | ||