@@ -593,10 +593,9 @@ static inline struct dentry *d_real(struct dentry *dentry,
* If dentry is on a union/overlay, then return the underlying, real inode.
* Otherwise return d_inode().
*/
-static inline struct inode *d_real_inode(const struct dentry *dentry)
+static inline struct inode *d_real_inode(struct dentry *dentry)
{
- /* This usage of d_real() results in const dentry */
- return d_backing_inode(d_real((struct dentry *) dentry, NULL, 0));
+ return d_backing_inode(d_real(dentry, NULL, 0));
}
struct name_snapshot {
This reverts commit 7b1742eb06ead6d02a6cf3c44587088e5392d1aa. No user of d_real_inode() remains, so it can be removed. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> --- include/linux/dcache.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)