+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (C) 2002, 2003, 2004 Cluster File Systems, Inc.
+ *
+ * This file is part of Lustre, http://www.lustre.org.
+ *
+ * Lustre is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * Lustre is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Lustre; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
#ifndef _LMV_INTERNAL_H_
#define _LMV_INTERNAL_H_
int state; /* object state. */
atomic_t count; /* ref counter. */
struct lustre_id id; /* master id of dir */
- void *update; /* bitmap of status (uptodate) */
+ void *update; /* bitmap of status (up-to-date) */
__u32 hashtype;
int objcount; /* number of slaves */
struct lmv_inode *objs; /* array of dirobjs */
struct obd_device *obd; /* pointer to LMV itself */
- unsigned long mtime;
- unsigned long ctime;
- unsigned long atime;
- unsigned long nlink;
};
static inline void
return mea;
}
-/* this checks if passed ids are eaqual. We check here only group (that is mds
- * number) and fid number as store cookie is not known outside of its MDS
- * anymore and should not be used. */
-static inline int
-lmv_id_equal(struct lustre_id *id1, struct lustre_id *id2)
-{
- if (id1->li_fid.lf_group != id2->li_fid.lf_group)
- return 0;
-
- if (id1->li_fid.lf_id != id2->li_fid.lf_id)
- return 0;
-
- return 1;
-}
-
/* lproc_lmv.c */
extern struct file_operations lmv_proc_target_fops;