X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_oi.h;h=541e472e50d58284f2037ea7dc1991799d529937;hb=5658cb8373b7a4730049203fd5a30c8b2a441c00;hp=2837ddc99f7b3226775e3a9c379deed22bfddd78;hpb=f4ea7b630b8adc9856ee67c6d16549f36e14efd1;p=fs%2Flustre-release.git diff --git a/lustre/osd-ldiskfs/osd_oi.h b/lustre/osd-ldiskfs/osd_oi.h index 2837ddc..541e472 100644 --- a/lustre/osd-ldiskfs/osd_oi.h +++ b/lustre/osd-ldiskfs/osd_oi.h @@ -27,7 +27,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, 2012, Intel Corporation. + * Copyright (c) 2012, 2013, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -125,6 +125,12 @@ static inline int osd_id_eq(const struct osd_inode_id *id0, id1->oii_gen == OSD_OII_NOGEN); } +static inline int osd_id_eq_strict(const struct osd_inode_id *id0, + const struct osd_inode_id *id1) +{ + return (id0->oii_ino == id1->oii_ino && id0->oii_gen == id1->oii_gen); +} + int osd_oi_mod_init(void); 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);