git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Linux 3.18: d_invalidate can no longer return an error
[openafs.git]
/
src
/
afs
/
LINUX
/
osi_compat.h
diff --git
a/src/afs/LINUX/osi_compat.h
b/src/afs/LINUX/osi_compat.h
index
e9e5076
..
57f6ea7
100644
(file)
--- a/
src/afs/LINUX/osi_compat.h
+++ b/
src/afs/LINUX/osi_compat.h
@@
-610,4
+610,15
@@
afs_maybe_shrink_dcache(struct dentry *dp)
#endif
}
+static inline int
+afs_d_invalidate(struct dentry *dp)
+{
+#if defined(D_INVALIDATE_IS_VOID)
+ d_invalidate(dp);
+ return 0;
+#else
+ return d_invalidate(dp);
+#endif
+}
+
#endif /* AFS_LINUX_OSI_COMPAT_H */