Lines Matching refs:rdev
246 static inline void rdev_dec_pending(mdk_rdev_t *rdev, mddev_t *mddev) in rdev_dec_pending() argument
248 int faulty = test_bit(Faulty, &rdev->flags); in rdev_dec_pending()
249 if (atomic_dec_and_test(&rdev->nr_pending) && faulty) in rdev_dec_pending()
271 void (*error_handler)(mddev_t *mddev, mdk_rdev_t *rdev);
272 int (*hot_add_disk) (mddev_t *mddev, mdk_rdev_t *rdev);
305 #define ITERATE_RDEV_GENERIC(head,rdev,tmp) \ argument
308 (rdev) = (list_entry((tmp), mdk_rdev_t, same_set)), \
314 #define ITERATE_RDEV(mddev,rdev,tmp) \ argument
315 ITERATE_RDEV_GENERIC((mddev)->disks,rdev,tmp)
320 #define ITERATE_RDEV_PENDING(rdev,tmp) \ argument
321 ITERATE_RDEV_GENERIC(pending_raid_disks,rdev,tmp)