Skip to content

Commit

Permalink
fs: bdev: fix conflicting comment from lookup_bdev
Browse files Browse the repository at this point in the history
We switched to directly use dev_t to get block device, lookup changed the
meaning of use, now we fix this conflicting comment.

Fixes: 4e7b567 ("block: remove i_bdev")
Cc: Jens Axboe <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: [email protected]
Signed-off-by: Jackie Liu <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
JackieLiu1 authored and axboe committed Oct 21, 2021
1 parent 0994c64 commit 057178c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions block/bdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,11 @@ EXPORT_SYMBOL(blkdev_put);
* @pathname: special file representing the block device
* @dev: return value of the block device's dev_t
*
* Get a reference to the blockdevice at @pathname in the current
* namespace if possible and return it. Return ERR_PTR(error)
* otherwise.
* Lookup the block device's dev_t at @pathname in the current
* namespace if possible and return it by @dev.
*
* RETURNS:
* 0 if succeeded, errno otherwise.
*/
int lookup_bdev(const char *pathname, dev_t *dev)
{
Expand Down

0 comments on commit 057178c

Please sign in to comment.