Whamcloud - gitweb
LU-9859 mdd: unwind md_capable()
[fs/lustre-release.git] / lustre / include / md_object.h
index 1785744..daa62d8 100644 (file)
@@ -729,13 +729,5 @@ int lu_ucred_global_init(void);
 
 void lu_ucred_global_fini(void);
 
-/* capable() is copied from linux kernel! */
-static inline int md_capable(struct lu_ucred *uc, int cap)
-{
-       if (cap_raised(uc->uc_cap, cap))
-               return 1;
-       return 0;
-}
-
 /** @} md */
 #endif /* _LINUX_MD_OBJECT_H */