Skip to content

Commit 057178c

Browse files
JackieLiu1axboe
authored andcommitted
fs: bdev: fix conflicting comment from lookup_bdev
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]>
1 parent 0994c64 commit 057178c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

block/bdev.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -964,9 +964,11 @@ EXPORT_SYMBOL(blkdev_put);
964964
* @pathname: special file representing the block device
965965
* @dev: return value of the block device's dev_t
966966
*
967-
* Get a reference to the blockdevice at @pathname in the current
968-
* namespace if possible and return it. Return ERR_PTR(error)
969-
* otherwise.
967+
* Lookup the block device's dev_t at @pathname in the current
968+
* namespace if possible and return it by @dev.
969+
*
970+
* RETURNS:
971+
* 0 if succeeded, errno otherwise.
970972
*/
971973
int lookup_bdev(const char *pathname, dev_t *dev)
972974
{

0 commit comments

Comments
 (0)