Skip to content

Commit 0ba4566

Browse files
Matthew Wilcox (Oracle)axboe
authored andcommitted
bdev: Improve lookup_bdev documentation
Add a Context section and rewrite the rest to be clearer. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Link: https://lore.kernel.org/r/20211213171113.3097631-1-willy@infradead.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 17f81f9 commit 0ba4566

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎block/bdev.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -955,15 +955,15 @@ void blkdev_put(struct block_device *bdev, fmode_t mode)
955955
EXPORT_SYMBOL(blkdev_put);
956956

957957
/**
958-
* lookup_bdev - lookup a struct block_device by name
959-
* @pathname: special file representing the block device
960-
* @dev: return value of the block device's dev_t
958+
* lookup_bdev() - Look up a struct block_device by name.
959+
* @pathname: Name of the block device in the filesystem.
960+
* @dev: Pointer to the block device's dev_t, if found.
961961
*
962962
* Lookup the block device's dev_t at @pathname in the current
963-
* namespace if possible and return it by @dev.
963+
* namespace if possible and return it in @dev.
964964
*
965-
* RETURNS:
966-
* 0 if succeeded, errno otherwise.
965+
* Context: May sleep.
966+
* Return: 0 if succeeded, negative errno otherwise.
967967
*/
968968
int lookup_bdev(const char *pathname, dev_t *dev)
969969
{

0 commit comments

Comments
 (0)