X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_scrub.h;h=fcb0ae36fb89c80b77990d904bb4e584a8a49fe9;hp=353c590ecb946d003b5318cf1fa13a1cb6851a3d;hb=f4ea7b630b8adc9856ee67c6d16549f36e14efd1;hpb=7cecfcffae9737f929a2cbc8067e093a4f85c3ba diff --git a/lustre/osd-ldiskfs/osd_scrub.h b/lustre/osd-ldiskfs/osd_scrub.h index 353c590..fcb0ae3 100644 --- a/lustre/osd-ldiskfs/osd_scrub.h +++ b/lustre/osd-ldiskfs/osd_scrub.h @@ -20,7 +20,7 @@ * GPL HEADER END */ /* - * Copyright (c) 2012 Whamcloud, Inc. + * Copyright (c) 2012, Intel Corporation. */ /* * lustre/osd-ldiskfs/osd_scrub.h @@ -140,6 +140,12 @@ struct scrub_file { /* How many prior objects have been updated during scanning. */ __u64 sf_items_updated_prior; + /* How many objects marked as LDISKFS_STATE_LUSTRE_NOSCRUB. */ + __u64 sf_items_noscrub; + + /* How many IGIF objects. */ + __u64 sf_items_igif; + /* How long the OI scrub has run. */ __u32 sf_run_time; @@ -166,8 +172,8 @@ struct osd_scrub { /* 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; @@ -192,7 +198,6 @@ struct osd_scrub { * 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. */ };