X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_mdt.h;h=a5f3352ffbbd2eabf4237fc91de45e196a63ea16;hp=81b69fc1e9897588d533ed31e0d587afab208528;hb=93a6346f8b73f68cb5bc02a3c826ac0e5b4c236e;hpb=9b1526b9431eb8687bc09306d3f440e7eda2aedf diff --git a/lustre/include/lustre_mdt.h b/lustre/include/lustre_mdt.h index 81b69fc..a5f3352 100644 --- a/lustre/include/lustre_mdt.h +++ b/lustre/include/lustre_mdt.h @@ -43,7 +43,6 @@ #include #include #include -#include #include /* @@ -56,28 +55,6 @@ struct com_thread_info { struct req_capsule *cti_pill; }; -enum { - ESERIOUS = 0x0001000 -}; - -static inline int err_serious(int rc) -{ - LASSERT(rc < 0); - return -(-rc | ESERIOUS); -} - -static inline int clear_serious(int rc) -{ - if (rc < 0) - rc = -(-rc & ~ESERIOUS); - return rc; -} - -static inline int is_serious(int rc) -{ - return (rc < 0 && -rc & ESERIOUS); -} - /** @} mdt */ #endif