RETURN(rc);
}
-static struct osd_obj_seq *osd_seq_find_locked(struct osd_obj_map *map,
- obd_seq seq)
+static struct osd_obj_seq *osd_seq_find_locked(struct osd_obj_map *map, u64 seq)
{
struct osd_obj_seq *osd_seq;
return NULL;
}
-static struct osd_obj_seq *osd_seq_find(struct osd_obj_map *map, obd_seq seq)
+static struct osd_obj_seq *osd_seq_find(struct osd_obj_map *map, u64 seq)
{
struct osd_obj_seq *osd_seq;
* debug messages to objects in the future, and the legacy space
* of FID_SEQ_OST_MDT0 will be unused in the future.
**/
-static inline void osd_seq_name(char *seq_name, size_t name_size, obd_seq seq)
+static inline void osd_seq_name(char *seq_name, size_t name_size, u64 seq)
{
snprintf(seq_name, name_size,
(fid_seq_is_rsvd(seq) ||
}
static inline void osd_oid_name(char *name, size_t name_size,
- const struct lu_fid *fid, obd_id id)
+ const struct lu_fid *fid, u64 id)
{
snprintf(name, name_size,
(fid_seq_is_rsvd(fid_seq(fid)) ||
}
static struct osd_obj_seq *osd_seq_load(struct osd_thread_info *info,
- struct osd_device *osd, obd_seq seq)
+ struct osd_device *osd, u64 seq)
{
struct osd_obj_map *map;
struct osd_obj_seq *osd_seq;
struct osd_obj_seq *osd_seq;
struct dentry *d;
struct ost_id *ostid = &info->oti_ostid;
- obd_id oid;
+ u64 oid;
int dirn, rc = 0;
char name[32];
ENTRY;
}
static int osd_seq_exists(const struct lu_env *env,
- struct osd_device *osd, obd_seq seq)
+ struct osd_device *osd, u64 seq)
{
struct lu_seq_range *range = &osd_oti_get(env)->oti_seq_range;
struct seq_server_site *ss = osd_seq_site(osd);
}
int osd_fld_lookup(const struct lu_env *env, struct osd_device *osd,
- obd_seq seq, struct lu_seq_range *range)
+ u64 seq, struct lu_seq_range *range)
{
struct seq_server_site *ss = osd_seq_site(osd);
int oos_subdir_count; /* subdir count for each seq */
struct dentry *oos_root; /* O/<seq> */
struct dentry **oos_dirs; /* O/<seq>/d0-dXX */
- obd_seq oos_seq; /* seq number */
+ u64 oos_seq; /* seq number */
struct list_head oos_seq_list; /* list to seq_list */
};
struct osd_mdobj {
struct dentry *om_root; /* AGENT/<index> */
- obd_seq om_index; /* mdt index */
+ u64 om_index; /* mdt index */
struct list_head om_list; /* list to omm_list */
};
int osd_scrub_dump(struct seq_file *m, struct osd_device *dev);
int osd_fld_lookup(const struct lu_env *env, struct osd_device *osd,
- obd_seq seq, struct lu_seq_range *range);
+ u64 seq, struct lu_seq_range *range);
int osd_delete_from_remote_parent(const struct lu_env *env,
struct osd_device *osd,
}
/* Check if a block is allocated or not */
-static int osd_is_mapped(struct inode *inode, obd_size offset)
+static int osd_is_mapped(struct inode *inode, u64 offset)
{
sector_t (*fs_bmap)(struct address_space *, sector_t);
/**< preferred limit on disk space (in QUOTABLOCK_SIZE) */
__u64 dqb_bsoftlimit;
__u64 dqb_curspace; /**< current space occupied (in bytes) */
- obd_time dqb_btime; /**< time limit for excessive disk use */
- obd_time dqb_itime; /**< time limit for excessive inode use */
+ s64 dqb_btime; /**< time limit for excessive disk use */
+ s64 dqb_itime; /**< time limit for excessive inode use */
};
/* Number of entries in one blocks(14 entries) */
if (unlikely(rc != 0))
RETURN(rc);
- osfs->os_bavail -= min_t(obd_size,
+ osfs->os_bavail -= min_t(u64,
OSD_GRANT_FOR_LOCAL_OIDS / osfs->os_bsize,
osfs->os_bavail);
RETURN(0);
}
static int osd_seq_exists(const struct lu_env *env, struct osd_device *osd,
- obd_seq seq)
+ u64 seq)
{
struct lu_seq_range *range = &osd_oti_get(env)->oti_seq_range;
struct seq_server_site *ss = osd_seq_site(osd);
struct osd_seq {
uint64_t *os_compat_dirs;
int os_subdir_count; /* subdir count for each seq */
- obd_seq os_seq; /* seq number */
+ u64 os_seq; /* seq number */
struct list_head os_seq_list; /* list to seq_list */
};
int osd_index_try(const struct lu_env *env, struct dt_object *dt,
const struct dt_index_features *feat);
int osd_fld_lookup(const struct lu_env *env, struct osd_device *osd,
- obd_seq seq, struct lu_seq_range *range);
+ u64 seq, struct lu_seq_range *range);
void osd_zap_cursor_init_serialized(zap_cursor_t *zc, struct objset *os,
uint64_t id, uint64_t dirhash);
int osd_zap_cursor_init(zap_cursor_t **zc, struct objset *os,
* the object is located (tgt index) and it is MDT or OST object.
*/
int osd_fld_lookup(const struct lu_env *env, struct osd_device *osd,
- obd_seq seq, struct lu_seq_range *range)
+ u64 seq, struct lu_seq_range *range)
{
struct seq_server_site *ss = osd_seq_site(osd);
}
static struct osd_seq *osd_seq_find_locked(struct osd_seq_list *seq_list,
- obd_seq seq)
+ u64 seq)
{
struct osd_seq *osd_seq;
return NULL;
}
-static struct osd_seq *osd_seq_find(struct osd_seq_list *seq_list,
- obd_seq seq)
+static struct osd_seq *osd_seq_find(struct osd_seq_list *seq_list, u64 seq)
{
struct osd_seq *osd_seq;
}
static struct osd_seq *osd_find_or_add_seq(const struct lu_env *env,
- struct osd_device *osd, obd_seq seq)
+ struct osd_device *osd, u64 seq)
{
struct osd_seq_list *seq_list = &osd->od_seq_list;
struct osd_seq *osd_seq;
{
struct osd_seq *osd_seq;
unsigned long b;
- obd_id id;
+ u64 id;
int rc;
osd_seq = osd_find_or_add_seq(env, osd, fid_seq(fid));