From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: Re: [PATCH 29/31] block: always use I_BDEV on file->f_mapping->host to find the bdev Date: Wed, 7 Jun 2023 15:11:34 +0200 Message-ID: <0ef858ca-47ab-f87d-5d0e-a4aba8175500@suse.de> References: <20230606073950.225178-1-hch@lst.de> <20230606073950.225178-30-hch@lst.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686143498; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e0cFxh1b0vPfL/rSzMj9DwQLiKhQENV1tRoKyRIEveo=; b=nwo9UT6C59YRGHr90piEQwfLycTSG2Q6lo5CAcAMlT4us8gW9pJwdSVOHGuX7EeXDCGys1 /mkYwE4HAwADtH8CTrqyTvQ6jRIZ1aUVuiUi7hsbWRiv7EnKe1h58wp2dSxHrEBHZwsv4z kS6kJA68/D1RCXRYDj0kbtxLmuYq0hM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686143498; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e0cFxh1b0vPfL/rSzMj9DwQLiKhQENV1tRoKyRIEveo=; b=DBKoPEarqt2dV7eJVJ7UZXeXIzMiKgUhj68udOgVVvFiO46cfK8CxabeXlK6HYRl77NZGq myCjmvQZP/1XYzAw== Content-Language: en-US In-Reply-To: <20230606073950.225178-30-hch-jcswGhMUV9g@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Christoph Hellwig , Jens Axboe Cc: Richard Weinberger , Josef Bacik , "Md. Haris Iqbal" , Jack Wang , Phillip Potter , Coly Li , Miquel Raynal , Vignesh Raghavendra , "Martin K. Petersen" , Chris Mason , David Sterba , Alexander Viro , Christian Brauner , "Rafael J. Wysocki" , Pavel Machek , dm-devel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-block-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-um-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-nvme-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org On 6/6/23 09:39, Christoph Hellwig wrote: > Always use I_BDEV(file->f_mapping->host) to find the bdev for a file to > free up file->private_data for other uses. > > Signed-off-by: Christoph Hellwig > --- > block/fops.c | 18 ++++++++---------- > 1 file changed, 8 insertions(+), 10 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes