fix ‘struct file’ has no member named ‘f_dentry’

Removed-in: torvalds/linux@78d28e651f
("kill f_dentry macro")

Signed-off-by: Barry Song <21cnbao@gmail.com>
Closes: #10 (picked)
This commit is contained in:
Barry Song 2018-04-16 11:13:48 +08:00 committed by Azat Khuzhin
parent af55617de2
commit 90e4702d37

View File

@ -21,6 +21,10 @@
#include "super.h" #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, /* 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. */ * such as: updating the free_blocks, inodes_count etc. */
static DEFINE_MUTEX(simplefs_sb_lock); static DEFINE_MUTEX(simplefs_sb_lock);