From: Jackie Liu Date: Thu, 21 Oct 2021 07:13:43 +0000 (+0800) Subject: fs: bdev: fix conflicting comment from lookup_bdev X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=057178cf518e699695a4b614a7a08c350b1fdcfd;p=linux.git 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: 4e7b5671c6a8 ("block: remove i_bdev") Cc: Jens Axboe Cc: Christoph Hellwig Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Jackie Liu Reviewed-by: Christoph Hellwig Link: https://lore.kernel.org/r/20211021071344.1600362-1-liu.yun@linux.dev Signed-off-by: Jens Axboe --- diff --git a/block/bdev.c b/block/bdev.c index cff0bb3a4578f..7e6156203a71c 100644 --- a/block/bdev.c +++ b/block/bdev.c @@ -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) {