Skip to content

Commit

Permalink
Btrfs: make some volumes.c functions static
Browse files Browse the repository at this point in the history
These aren't used outside of volumes.c.

Signed-off-by: Omar Sandoval <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
osandov authored and kdave committed Oct 30, 2017
1 parent 012e513 commit c9162bd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ static void pending_bios_fn(struct btrfs_work *work)
}


void btrfs_free_stale_device(struct btrfs_device *cur_dev)
static void btrfs_free_stale_device(struct btrfs_device *cur_dev)
{
struct btrfs_fs_devices *fs_devs;
struct btrfs_device *dev;
Expand Down Expand Up @@ -1062,14 +1062,15 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
return ret;
}

void btrfs_release_disk_super(struct page *page)
static void btrfs_release_disk_super(struct page *page)
{
kunmap(page);
put_page(page);
}

int btrfs_read_disk_super(struct block_device *bdev, u64 bytenr,
struct page **page, struct btrfs_super_block **disk_super)
static int btrfs_read_disk_super(struct block_device *bdev, u64 bytenr,
struct page **page,
struct btrfs_super_block **disk_super)
{
void *p;
pgoff_t index;
Expand Down Expand Up @@ -1811,8 +1812,8 @@ static int btrfs_check_raid_min_devices(struct btrfs_fs_info *fs_info,
return 0;
}

struct btrfs_device *btrfs_find_next_active_device(struct btrfs_fs_devices *fs_devs,
struct btrfs_device *device)
static struct btrfs_device * btrfs_find_next_active_device(
struct btrfs_fs_devices *fs_devs, struct btrfs_device *device)
{
struct btrfs_device *next_device;

Expand Down

0 comments on commit c9162bd

Please sign in to comment.