X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_oi.h;h=697b81b319c91a0fd3dfa979f00f1469bbeb6b1a;hb=42c4dab3c817f9f03efe457fd33e946ed68fab14;hp=fb52db529a3fdbf9aeb018be3969b64c94102c4c;hpb=72057a3af19ee02d9a686bd7e7d074917e381310;p=fs%2Flustre-release.git diff --git a/lustre/osd-ldiskfs/osd_oi.h b/lustre/osd-ldiskfs/osd_oi.h index fb52db5..697b81b 100644 --- a/lustre/osd-ldiskfs/osd_oi.h +++ b/lustre/osd-ldiskfs/osd_oi.h @@ -23,7 +23,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, 2013, Intel Corporation. + * Copyright (c) 2012, 2016, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -53,10 +53,9 @@ #include #include -#define OSD_OI_FID_NR (1UL << OSD_OI_FID_OID_BITS) -#define OSD_OI_FID_NR_MAX (1UL << OSD_OI_FID_OID_BITS_MAX) - -#define OSD_OII_NOGEN (0) +#define OSD_OI_FID_OID_BITS 6 +#define OSD_OI_FID_NR (1UL << OSD_OI_FID_OID_BITS) +#define OSD_OII_NOGEN (0) struct lu_fid; struct osd_thread_info; @@ -134,6 +133,8 @@ enum oi_check_flags { OI_KNOWN_ON_OST = 0x00000002, }; +extern unsigned int osd_oi_count; + int osd_oi_mod_init(void); int osd_oi_init(struct osd_thread_info *info, struct osd_device *osd, bool restored);