X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd%2Fosd_internal.h;fp=lustre%2Fosd%2Fosd_internal.h;h=9c5db4a7bf903f3cf359781f671a8673d90b5e88;hb=90dfed8469d46f4b79ebdff8121eb109b5db6746;hp=0b3aad3c53cd275f89365673815b41bdc2b658f3;hpb=cfa207a65e9dc08a006460d48c5b583e45428ab1;p=fs%2Flustre-release.git diff --git a/lustre/osd/osd_internal.h b/lustre/osd/osd_internal.h index 0b3aad3..9c5db4a 100644 --- a/lustre/osd/osd_internal.h +++ b/lustre/osd/osd_internal.h @@ -306,21 +306,5 @@ static inline int osd_invariant(const struct osd_object *obj) #define osd_invariant(obj) (1) #endif -/* The on-disk extN format reserves inodes 0-11 for internal filesystem - * use, and these inodes will be invisible on client side, so the valid - * sequence for IGIF fid is 12-0xffffffff. But root inode (2#) will be seen - * on server side (osd), and it should be valid too here. - */ -#define OSD_ROOT_SEQ 2 -static inline int osd_fid_is_root(const struct lu_fid *fid) -{ - return fid_seq(fid) == OSD_ROOT_SEQ; -} - -static inline int osd_fid_is_igif(const struct lu_fid *fid) -{ - return fid_is_igif(fid) || osd_fid_is_root(fid); -} - #endif /* __KERNEL__ */ #endif /* _OSD_INTERNAL_H */