mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-28 08:24:12 +02:00
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:
parent
af55617de2
commit
90e4702d37
4
simple.c
4
simple.c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user