Browse Source

kill f_dentry macro

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 10 years ago
parent
commit
78d28e651f
2 changed files with 4 additions and 1 deletions
  1. 4 0
      Documentation/filesystems/porting
  2. 0 1
      include/linux/fs.h

+ 4 - 0
Documentation/filesystems/porting

@@ -467,3 +467,7 @@ in your dentry operations instead.
 [mandatory]
 	d_materialise_unique() is gone; d_splice_alias() does everything you
 	need now.  Remember that they have opposite orders of arguments ;-/
+--
+[mandatory]
+	f_dentry is gone; use f_path.dentry, or, better yet, see if you can avoid
+	it entirely.

+ 0 - 1
include/linux/fs.h

@@ -789,7 +789,6 @@ struct file {
 		struct rcu_head 	fu_rcuhead;
 	} f_u;
 	struct path		f_path;
-#define f_dentry	f_path.dentry
 	struct inode		*f_inode;	/* cached value */
 	const struct file_operations	*f_op;