diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-16 01:46:50 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-16 04:36:45 +0200 |
commit | 80e5d1ff5d5f1ed5167a69b7c2fe86071b615f6b (patch) | |
tree | f3f7733cf08903f3d979f95b69148700c668f8b3 /fs/nilfs2 | |
parent | hostfs_open(): don't open-code file_dentry() (diff) | |
download | linux-80e5d1ff5d5f1ed5167a69b7c2fe86071b615f6b.tar.xz linux-80e5d1ff5d5f1ed5167a69b7c2fe86071b615f6b.zip |
useful constants: struct qstr for ".."
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/namei.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/namei.c b/fs/nilfs2/namei.c index ecace5f96a95..b2709874ced5 100644 --- a/fs/nilfs2/namei.c +++ b/fs/nilfs2/namei.c @@ -440,10 +440,9 @@ static struct dentry *nilfs_get_parent(struct dentry *child) { unsigned long ino; struct inode *inode; - struct qstr dotdot = QSTR_INIT("..", 2); struct nilfs_root *root; - ino = nilfs_inode_by_name(d_inode(child), &dotdot); + ino = nilfs_inode_by_name(d_inode(child), &dotdot_name); if (!ino) return ERR_PTR(-ENOENT); |