Skip to content

Commit

Permalink
fix ‘struct file’ has no member named ‘f_dentry’
Browse files Browse the repository at this point in the history
Removed-in: torvalds/linux@78d28e6
("kill f_dentry macro")

Signed-off-by: Barry Song <[email protected]>
Closes: #10 (picked)
  • Loading branch information
21cnbao authored and azat committed Apr 19, 2018
1 parent af55617 commit 90e4702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 90e4702

Please sign in to comment.