Skip to content

Commit

Permalink
dm: remove symbol export for dm_set_device_limits
Browse files Browse the repository at this point in the history
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: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Mike Snitzer committed Jun 4, 2014
1 parent 7eee4ae commit 11f0431
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 2 additions & 3 deletions drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode,
}
EXPORT_SYMBOL(dm_get_device);

int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
sector_t start, sector_t len, void *data)
static int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
sector_t start, sector_t len, void *data)
{
struct queue_limits *limits = data;
struct block_device *bdev = dev->bdev;
Expand Down Expand Up @@ -499,7 +499,6 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
(unsigned int) (PAGE_SIZE >> 9));
return 0;
}
EXPORT_SYMBOL_GPL(dm_set_device_limits);

/*
* Decrement a device's use count and remove it if necessary.
Expand Down
1 change: 0 additions & 1 deletion drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,6 @@ static int dm_merge_bvec(struct request_queue *q,
* just one page.
*/
else if (queue_max_hw_sectors(q) <= PAGE_SIZE >> 9)

max_size = 0;

out:
Expand Down
8 changes: 1 addition & 7 deletions include/linux/device-mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ typedef int (*dm_busy_fn) (struct dm_target *ti);

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 block_device *bdev;
fmode_t mode;
Expand All @@ -132,7 +126,7 @@ struct dm_dev {
* are opened/closed correctly.
*/
int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode,
struct dm_dev **result);
struct dm_dev **result);
void dm_put_device(struct dm_target *ti, struct dm_dev *d);

/*
Expand Down

0 comments on commit 11f0431

Please sign in to comment.