X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_oi.h;h=ce68721ac8915f795621be592cd0cfb7b8142909;hb=f2f09b6ecd85ceb05cd64907a71f87bbc49bfc21;hp=d8f5377d13160f340e8666ae84cc95e98431b9e2;hpb=4db03b974810789133e354b08029f0eb261fad5e;p=fs%2Flustre-release.git diff --git a/lustre/osd-ldiskfs/osd_oi.h b/lustre/osd-ldiskfs/osd_oi.h index d8f5377..ce68721 100644 --- a/lustre/osd-ldiskfs/osd_oi.h +++ b/lustre/osd-ldiskfs/osd_oi.h @@ -28,6 +28,8 @@ /* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2012, Whamcloud, Inc. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -63,16 +65,8 @@ struct lu_site; struct thandle; struct dt_device; - -/* - * Object Index (oi) instance. - */ -struct osd_oi { - /* - * underlying index object, where fid->id mapping in stored. - */ - struct dt_object *oi_dir; -}; +struct osd_device; +struct osd_oi; /* * Storage cookie. Datum uniquely identifying inode on the underlying file @@ -87,20 +81,15 @@ struct osd_inode_id { }; int osd_oi_mod_init(void); -int osd_oi_init(struct osd_thread_info *info, - struct osd_oi **oi_table, - struct dt_device *dev, - struct md_device *mdev); -void osd_oi_fini(struct osd_thread_info *info, - struct osd_oi **oi_table, unsigned oi_count); - -int osd_oi_lookup(struct osd_thread_info *info, struct osd_oi *oi, +int osd_oi_init(struct osd_thread_info *info, struct osd_device *osd); +void osd_oi_fini(struct osd_thread_info *info, struct osd_device *osd); +int osd_oi_lookup(struct osd_thread_info *info, struct osd_device *osd, const struct lu_fid *fid, struct osd_inode_id *id); -int osd_oi_insert(struct osd_thread_info *info, struct osd_oi *oi, +int osd_oi_insert(struct osd_thread_info *info, struct osd_device *osd, const struct lu_fid *fid, const struct osd_inode_id *id, struct thandle *th, int ingore_quota); int osd_oi_delete(struct osd_thread_info *info, - struct osd_oi *oi, const struct lu_fid *fid, + struct osd_device *osd, const struct lu_fid *fid, struct thandle *th); #endif /* __KERNEL__ */