summaryrefslogtreecommitdiff
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-04-16 02:46:50 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2021-04-16 05:36:45 +0300
commit80e5d1ff5d5f1ed5167a69b7c2fe86071b615f6b (patch)
treef3f7733cf08903f3d979f95b69148700c668f8b3 /fs/f2fs/namei.c
parentd692d397e8a69f4ecdd7fb35ff0140d69bf17e18 (diff)
downloadlinux-80e5d1ff5d5f1ed5167a69b7c2fe86071b615f6b.tar.xz
useful constants: struct qstr for ".."
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r--fs/f2fs/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 17bd072a5d39..f2ad7931e949 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -416,9 +416,8 @@ out:
struct dentry *f2fs_get_parent(struct dentry *child)
{
- struct qstr dotdot = QSTR_INIT("..", 2);
struct page *page;
- unsigned long ino = f2fs_inode_by_name(d_inode(child), &dotdot, &page);
+ unsigned long ino = f2fs_inode_by_name(d_inode(child), &dotdot_name, &page);
if (!ino) {
if (IS_ERR(page))
return ERR_CAST(page);