https://github.com/torvalds/linux
Revision e2a9aa5ab2a4d1fb05fcdfa9661d54e437093297 authored by Linus Torvalds on 26 May 2017, 21:02:30 UTC, committed by Linus Torvalds on 26 May 2017, 21:02:30 UTC
Pull LED fix from Jacek Anaszewski:
 "A single LED fix for 4.12-rc3.

  leds-pca955x driver uses only i2c_smbus API and thus it should pass
  I2C_FUNC_SMBUS_BYTE_DATA flag to i2c_check_functionality"

* tag 'led_fixes_for_4-12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
  leds: pca955x: Correct I2C Functionality
2 parent s 6741d51 + aace34c
Raw File
Tip revision: e2a9aa5ab2a4d1fb05fcdfa9661d54e437093297 authored by Linus Torvalds on 26 May 2017, 21:02:30 UTC
Merge tag 'led_fixes_for_4-12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
Tip revision: e2a9aa5
dm-cache-background-tracker.h
/*
 * Copyright (C) 2017 Red Hat. All rights reserved.
 *
 * This file is released under the GPL.
 */

#ifndef DM_CACHE_BACKGROUND_WORK_H
#define DM_CACHE_BACKGROUND_WORK_H

#include <linux/vmalloc.h>
#include "dm-cache-policy.h"

/*----------------------------------------------------------------*/

struct background_work;
struct background_tracker;

/*
 * FIXME: discuss lack of locking in all methods.
 */
struct background_tracker *btracker_create(unsigned max_work);
void btracker_destroy(struct background_tracker *b);

unsigned btracker_nr_writebacks_queued(struct background_tracker *b);
unsigned btracker_nr_demotions_queued(struct background_tracker *b);

/*
 * returns -EINVAL iff the work is already queued.  -ENOMEM if the work
 * couldn't be queued for another reason.
 */
int btracker_queue(struct background_tracker *b,
		   struct policy_work *work,
		   struct policy_work **pwork);

/*
 * Returns -ENODATA if there's no work.
 */
int btracker_issue(struct background_tracker *b, struct policy_work **work);
void btracker_complete(struct background_tracker *b,
		       struct policy_work *op);
bool btracker_promotion_already_present(struct background_tracker *b,
					dm_oblock_t oblock);

/*----------------------------------------------------------------*/

#endif
back to top