diff options
author | Jackie Liu <liuyun01@kylinos.cn> | 2021-10-21 15:13:43 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-21 08:24:14 -0600 |
commit | 057178cf518e699695a4b614a7a08c350b1fdcfd (patch) | |
tree | 9a13f5df57049fc0ffd269c6ab49bfd44d7d1492 /block | |
parent | 0994c64eb4159ba019e7fedc7ba0dd6a69235b40 (diff) |
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 <axboe@kernel.dk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20211021071344.1600362-1-liu.yun@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/bdev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/block/bdev.c b/block/bdev.c index cff0bb3a4578..7e6156203a71 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) { |