aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ntfs/namei.c')
-rw-r--r--fs/ntfs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c
index b3973c2fd190..0f35b80d17fe 100644
--- a/fs/ntfs/namei.c
+++ b/fs/ntfs/namei.c
@@ -292,14 +292,14 @@ const struct inode_operations ntfs_dir_inode_ops = {
292 * The code is based on the ext3 ->get_parent() implementation found in 292 * The code is based on the ext3 ->get_parent() implementation found in
293 * fs/ext3/namei.c::ext3_get_parent(). 293 * fs/ext3/namei.c::ext3_get_parent().
294 * 294 *
295 * Note: ntfs_get_parent() is called with @child_dent->d_inode->i_mutex down. 295 * Note: ntfs_get_parent() is called with @d_inode(child_dent)->i_mutex down.
296 * 296 *
297 * Return the dentry of the parent directory on success or the error code on 297 * Return the dentry of the parent directory on success or the error code on
298 * error (IS_ERR() is true). 298 * error (IS_ERR() is true).
299 */ 299 */
300static struct dentry *ntfs_get_parent(struct dentry *child_dent) 300static struct dentry *ntfs_get_parent(struct dentry *child_dent)
301{ 301{
302 struct inode *vi = child_dent->d_inode; 302 struct inode *vi = d_inode(child_dent);
303 ntfs_inode *ni = NTFS_I(vi); 303 ntfs_inode *ni = NTFS_I(vi);
304 MFT_RECORD *mrec; 304 MFT_RECORD *mrec;
305 ntfs_attr_search_ctx *ctx; 305 ntfs_attr_search_ctx *ctx;