Commit 11f0431b authored by Mike Snitzer's avatar Mike Snitzer

dm: remove symbol export for dm_set_device_limits

There is no need for code other than DM core to use dm_set_device_limits
so remove its EXPORT_SYMBOL_GPL.  Also, cleanup a couple whitespace nits.
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 7eee4ae2
...@@ -465,7 +465,7 @@ int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, ...@@ -465,7 +465,7 @@ int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode,
} }
EXPORT_SYMBOL(dm_get_device); EXPORT_SYMBOL(dm_get_device);
int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
sector_t start, sector_t len, void *data) sector_t start, sector_t len, void *data)
{ {
struct queue_limits *limits = data; struct queue_limits *limits = data;
...@@ -499,7 +499,6 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev, ...@@ -499,7 +499,6 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
(unsigned int) (PAGE_SIZE >> 9)); (unsigned int) (PAGE_SIZE >> 9));
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(dm_set_device_limits);
/* /*
* Decrement a device's use count and remove it if necessary. * Decrement a device's use count and remove it if necessary.
......
...@@ -1498,7 +1498,6 @@ static int dm_merge_bvec(struct request_queue *q, ...@@ -1498,7 +1498,6 @@ static int dm_merge_bvec(struct request_queue *q,
* just one page. * just one page.
*/ */
else if (queue_max_hw_sectors(q) <= PAGE_SIZE >> 9) else if (queue_max_hw_sectors(q) <= PAGE_SIZE >> 9)
max_size = 0; max_size = 0;
out: out:
......
...@@ -115,12 +115,6 @@ typedef int (*dm_busy_fn) (struct dm_target *ti); ...@@ -115,12 +115,6 @@ typedef int (*dm_busy_fn) (struct dm_target *ti);
void dm_error(const char *message); void dm_error(const char *message);
/*
* Combine device limits.
*/
int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
sector_t start, sector_t len, void *data);
struct dm_dev { struct dm_dev {
struct block_device *bdev; struct block_device *bdev;
fmode_t mode; fmode_t mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment