From 90e4702d37d53a6928cf7f93ed3344c9a3a0de31 Mon Sep 17 00:00:00 2001 From: Barry Song <21cnbao@gmail.com> Date: Mon, 16 Apr 2018 11:13:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E2=80=98struct=20file=E2=80=99=20has=20n?= =?UTF-8?q?o=20member=20named=20=E2=80=98f=5Fdentry=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed-in: torvalds/linux@78d28e651f97866d608d9b41f8ad291e65d47dd5 ("kill f_dentry macro") Signed-off-by: Barry Song <21cnbao@gmail.com> Closes: #10 (picked) --- simple.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simple.c b/simple.c index 99cf043..802caac 100644 --- a/simple.c +++ b/simple.c @@ -21,6 +21,10 @@ #include "super.h" +#ifndef f_dentry +#define f_dentry f_path.dentry +#endif + /* A super block lock that must be used for any critical section operation on the sb, * such as: updating the free_blocks, inodes_count etc. */ static DEFINE_MUTEX(simplefs_sb_lock);