* GPL HEADER END
*/
/*
- * Copyright (c) 2012 Whamcloud, Inc.
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* lustre/osd-ldiskfs/osd_scrub.h
/* OI scrub is triggered automatically. */
SF_AUTO = 0x0000000000000004ULL,
+
+ /* The device is upgraded from 1.8 format. */
+ SF_UPGRADE = 0x0000000000000008ULL,
};
enum scrub_param {
/* How many prior objects have been updated during scanning. */
__u64 sf_items_updated_prior;
- /* How many objects marked as I_LUSTRE_NOSCRUB. */
+ /* How many objects marked as LDISKFS_STATE_LUSTRE_NOSCRUB. */
__u64 sf_items_noscrub;
/* How many IGIF objects. */
/* write lock for scrub prep/update/post/checkpoint,
* read lock for scrub dump. */
- cfs_rw_semaphore_t os_rwsem;
- cfs_spinlock_t os_lock;
+ struct rw_semaphore os_rwsem;
+ spinlock_t os_lock;
/* Scrub file in memory. */
struct scrub_file os_file;
* found by RPC prior */
os_waiting:1, /* Waiting for scan window. */
os_full_speed:1, /* run w/o speed limit */
- os_no_scrub:1, /* NOT auto trigger OI scrub*/
os_paused:1; /* The scrub is paused. */
};