Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexScherba16 committed Jun 27, 2024
1 parent 3dea113 commit 5c3b7dc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/blkdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,21 +152,16 @@ struct super_block *dattobd_get_super(struct block_device * bd)
*/
void dattobd_drop_super(struct super_block *sb)
{
#if defined HAVE_BD_SUPER
return;

#elif defined HAVE_GET_SUPER
#if defined HAVE_GET_SUPER
return drop_super(sb);

#else
return;
#endif
return;
}

/**
* dattobd_blkdev_put() - Releases a reference to a block device.
* This function performs the appropriate action based on the available
* kernel functions to release or drop the superblock.
* kernel functions to release block device.
*
* @bd: block device structure pointer to be released.
*
Expand Down

0 comments on commit 5c3b7dc

Please sign in to comment.