projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dcd0af
)
vfs: add d_real_inode() helper
author
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 20 May 2016 20:13:45 +0000
(22:13 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 20 May 2016 20:13:45 +0000
(22:13 +0200)
Needed by the following fix.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org>
include/linux/dcache.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/dcache.h
b/include/linux/dcache.h
index 7e9422cb5989c2e84ddd19eba2c91041f7b8622f..ad5d582f9b140f9ba0c05fc049b30c06379a5a8d 100644
(file)
--- a/
include/linux/dcache.h
+++ b/
include/linux/dcache.h
@@
-576,5
+576,17
@@
static inline struct inode *vfs_select_inode(struct dentry *dentry,
return inode;
}
+/**
+ * d_real_inode - Return the real inode
+ * @dentry: The dentry to query
+ *
+ * If dentry is on an union/overlay, then return the underlying, real inode.
+ * Otherwise return d_inode().
+ */
+static inline struct inode *d_real_inode(struct dentry *dentry)
+{
+ return d_backing_inode(d_real(dentry));
+}
+
#endif /* __LINUX_DCACHE_H */