Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 874 Bytes
From b4f5f0fc55e1af00ac4a2c4e3cc4e73597a60781 Mon Sep 17 00:00:00 2001
From: Alejandro Martinez Ruiz <alex@nowcomputing.com>
Date: Thu, 24 Jan 2013 21:02:14 +0100
Subject: [PATCH] f2fs: backport QSTR_INIT in namei
The upstream commit introducing QSTR_INIT is 26fe575028703948880fce4355a210c76bb0536e.
Signed-off-by: Alejandro Martinez Ruiz <alex@nowcomputing.com>
---
fs/f2fs/namei.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 8c7b0f9..d3f2b57 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -191,7 +191,7 @@ out:
struct dentry *f2fs_get_parent(struct dentry *child)
{
- struct qstr dotdot = QSTR_INIT("..", 2);
+ struct qstr dotdot = { .name = "..", .len = 2 };
unsigned long ino = f2fs_inode_by_name(child->d_inode, &dotdot);
if (!ino)
return ERR_PTR(-ENOENT);
--
1.8.2.1.422.gdcd8c09
You can’t perform that action at this time.