aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-03-09 18:06:03 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2018-03-29 15:07:48 -0400
commit5bf1ddf7ee0e23598a620ef9ea2b0f00e804859d (patch)
tree9726d76f1dfba9145e9bf3f56f65957cb11820cc /drivers
parentcd1c0c9321999737073dcfc3364e194e02604bce (diff)
lustre: get rid of pointless casts to struct dentry *
... when feeding const struct dentry * to primitives taking exactly that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/lustre/lustre/llite/dcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/llite/dcache.c b/drivers/staging/lustre/lustre/llite/dcache.c
index 549369739d80..6cd0318062e8 100644
--- a/drivers/staging/lustre/lustre/llite/dcache.c
+++ b/drivers/staging/lustre/lustre/llite/dcache.c
@@ -90,7 +90,7 @@ static int ll_dcompare(const struct dentry *dentry,
90 d_count(dentry)); 90 d_count(dentry));
91 91
92 /* mountpoint is always valid */ 92 /* mountpoint is always valid */
93 if (d_mountpoint((struct dentry *)dentry)) 93 if (d_mountpoint(dentry))
94 return 0; 94 return 0;
95 95
96 if (d_lustre_invalid(dentry)) 96 if (d_lustre_invalid(dentry))
@@ -111,7 +111,7 @@ static int ll_ddelete(const struct dentry *de)
111 LASSERT(de); 111 LASSERT(de);
112 112
113 CDEBUG(D_DENTRY, "%s dentry %pd (%p, parent %p, inode %p) %s%s\n", 113 CDEBUG(D_DENTRY, "%s dentry %pd (%p, parent %p, inode %p) %s%s\n",
114 d_lustre_invalid((struct dentry *)de) ? "deleting" : "keeping", 114 d_lustre_invalid(de) ? "deleting" : "keeping",
115 de, de, de->d_parent, d_inode(de), 115 de, de, de->d_parent, d_inode(de),
116 d_unhashed(de) ? "" : "hashed,", 116 d_unhashed(de) ? "" : "hashed,",
117 list_empty(&de->d_subdirs) ? "" : "subdirs"); 117 list_empty(&de->d_subdirs) ? "" : "subdirs");
@@ -119,7 +119,7 @@ static int ll_ddelete(const struct dentry *de)
119 /* kernel >= 2.6.38 last refcount is decreased after this function. */ 119 /* kernel >= 2.6.38 last refcount is decreased after this function. */
120 LASSERT(d_count(de) == 1); 120 LASSERT(d_count(de) == 1);
121 121
122 if (d_lustre_invalid((struct dentry *)de)) 122 if (d_lustre_invalid(de))
123 return 1; 123 return 1;
124 return 0; 124 return 0;
125} 125}