aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c
index dffb86536285..f663a67d7bf0 100644
--- a/fs/ext2/namei.c
+++ b/fs/ext2/namei.c
@@ -79,7 +79,7 @@ static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, str
79 79
80struct dentry *ext2_get_parent(struct dentry *child) 80struct dentry *ext2_get_parent(struct dentry *child)
81{ 81{
82 struct qstr dotdot = {.name = "..", .len = 2}; 82 struct qstr dotdot = QSTR_INIT("..", 2);
83 unsigned long ino = ext2_inode_by_name(child->d_inode, &dotdot); 83 unsigned long ino = ext2_inode_by_name(child->d_inode, &dotdot);
84 if (!ino) 84 if (!ino)
85 return ERR_PTR(-ENOENT); 85 return ERR_PTR(-ENOENT);