Move helpers from headers to source files

Move helper functions that are used in only one source file to that file.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2022-09-02 21:43:34 +02:00
parent a7370366cb
commit 2aae800c45
4 changed files with 10 additions and 9 deletions

View File

@@ -13,6 +13,11 @@
#define CASDSK_DISK_OPEN_FMODE (FMODE_READ | FMODE_WRITE)
static inline struct casdsk_disk *casdsk_kobj_to_disk(struct kobject *kobj)
{
return container_of(kobj, struct casdsk_disk, kobj);
}
static inline struct block_device *open_bdev_exclusive(const char *path,
fmode_t mode,
void *holder)