* 3 - real records */
unsigned ozi_pos:3;
union {
- char ozi_name[NAME_MAX + 1]; /* file name for dir */
+ char ozi_name[MAXNAMELEN]; /* file name for dir */
__u64 ozi_key; /* binary key for index files */
};
};
};
char oti_str[64];
- char oti_key[MAXNAMELEN + 1];
+ union {
+ char oti_key[MAXNAMELEN + 1];
+ __u64 oti_key64[(MAXNAMELEN + 1)/sizeof(__u64)];
+ };
struct lustre_mdt_attrs oti_mdt_attrs;
struct lu_attr oti_la;
/* used to debug zerocopy logic: the fields track all
* allocated, loaned and referenced buffers in use.
* to be removed once the change is tested well. */
- cfs_atomic_t od_zerocopy_alloc;
- cfs_atomic_t od_zerocopy_loan;
- cfs_atomic_t od_zerocopy_pin;
+ atomic_t od_zerocopy_alloc;
+ atomic_t od_zerocopy_loan;
+ atomic_t od_zerocopy_pin;
arc_prune_t *arc_prune_cb;
};
uint64_t oo_xattr;
/* record size for index file */
- int oo_recsize;
+ unsigned char oo_keysize;
+ unsigned char oo_recsize;
+ unsigned char oo_recusize; /* unit size */
};
int osd_statfs(const struct lu_env *, struct dt_device *, struct obd_statfs *);