- int ofd_subdir_count;
-
- int ofd_max_group;
- obd_id ofd_last_objids[OFD_MAX_GROUPS];
- struct mutex ofd_create_locks[OFD_MAX_GROUPS];
- struct dt_object *ofd_lastid_obj[OFD_MAX_GROUPS];
- spinlock_t ofd_objid_lock;
- unsigned long ofd_destroys_in_progress;
- int ofd_precreate_batch;
-
- /* protect all statfs-related counters */
- spinlock_t ofd_osfs_lock;
- /* statfs optimization: we cache a bit */
- struct obd_statfs ofd_osfs;
- __u64 ofd_osfs_age;
- int ofd_blockbits;
- /* writes which might be be accounted twice in ofd_osfs.os_bavail */
- obd_size ofd_osfs_unstable;
-
- /* counters used during statfs update, protected by ofd_osfs_lock.
- * record when some statfs refresh are in progress */
- int ofd_statfs_inflight;
- /* track writes completed while statfs refresh is underway.
- * tracking is only effective when ofd_statfs_inflight > 1 */
- obd_size ofd_osfs_inflight;
-
- /* grants: all values in bytes */
- /* grant lock to protect all grant counters */
- spinlock_t ofd_grant_lock;
- /* total amount of dirty data reported by clients in incoming obdo */
- obd_size ofd_tot_dirty;
- /* sum of filesystem space granted to clients for async writes */
- obd_size ofd_tot_granted;
- /* grant used by I/Os in progress (between prepare and commit) */
- obd_size ofd_tot_pending;
- /* free space threshold over which we stop granting space to clients
- * ofd_grant_ratio is stored as a fixed-point fraction using
- * OFD_GRANT_RATIO_SHIFT of the remaining free space, not in percentage
- * values */
- int ofd_grant_ratio;
- /* number of clients using grants */
- int ofd_tot_granted_clients;
-
- /* ofd mod data: ofd_device wide values */
- int ofd_fmd_max_num; /* per ofd ofd_mod_data */
- cfs_duration_t ofd_fmd_max_age; /* time to fmd expiry */