public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: Yangtao Li <frank.li@vivo.com>, Gao Xiang <xiang@kernel.org>,
	Chao Yu <chao@kernel.org>, Yue Hu <huyue2@coolpad.com>,
	Jeffle Xu <jefflexu@linux.alibaba.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Damien Le Moal <damien.lemoal@opensource.wdc.com>,
	linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 03/10] erofs: convert to kobject_del_and_put()
Date: Thu, 23 Mar 2023 03:09:24 +0800	[thread overview]
Message-ID: <287798df-2da6-0158-cbdc-616e587e58bd@linux.alibaba.com> (raw)
In-Reply-To: <20230322165905.55389-2-frank.li@vivo.com>



On 2023/3/23 00:58, Yangtao Li wrote:
> Use kobject_del_and_put() to simplify code.
> 
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> Cc: Damien Le Moal <damien.lemoal@opensource.wdc.com>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>

Acked-by: Gao Xiang <hsiangkao@linux.alibaba.com>

Thanks,
Gao Xiang

> ---
>   fs/erofs/sysfs.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/fs/erofs/sysfs.c b/fs/erofs/sysfs.c
> index 435e515c0792..9ed7d6552155 100644
> --- a/fs/erofs/sysfs.c
> +++ b/fs/erofs/sysfs.c
> @@ -241,8 +241,7 @@ void erofs_unregister_sysfs(struct super_block *sb)
>   	struct erofs_sb_info *sbi = EROFS_SB(sb);
>   
>   	if (sbi->s_kobj.state_in_sysfs) {
> -		kobject_del(&sbi->s_kobj);
> -		kobject_put(&sbi->s_kobj);
> +		kobject_del_and_put(&sbi->s_kobj);
>   		wait_for_completion(&sbi->s_kobj_unregister);
>   	}
>   }

  reply	other threads:[~2023-03-22 19:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 16:58 [PATCH v3 02/10] f2fs: convert to kobject_del_and_put() Yangtao Li
2023-03-22 16:58 ` [PATCH v3 03/10] erofs: " Yangtao Li
2023-03-22 19:09   ` Gao Xiang [this message]
2023-03-22 23:33   ` Damien Le Moal
2023-03-22 16:58 ` [PATCH v3 04/10] zonefs: " Yangtao Li
2023-03-22 23:33   ` Damien Le Moal
2023-03-22 16:59 ` [PATCH v3 05/10] ubifs: " Yangtao Li
2023-03-22 17:02   ` Richard Weinberger
2023-03-22 23:34   ` Damien Le Moal
2023-03-23  1:08   ` Zhihao Cheng
2023-03-22 16:59 ` [PATCH v3 06/10] btrfs: " Yangtao Li
2023-03-22 23:35   ` Damien Le Moal
2023-03-22 16:59 ` [PATCH v3 07/10] xfs: " Yangtao Li
2023-03-22 23:35   ` Damien Le Moal
2023-03-22 16:59 ` [PATCH v3 08/10] ocfs2: " Yangtao Li
2023-03-22 23:36   ` Damien Le Moal
2023-03-22 16:59 ` [PATCH v3 09/10] nfs: " Yangtao Li
2023-03-22 23:36   ` Damien Le Moal
2023-03-22 16:59 ` [PATCH v3 10/10] nilfs2: " Yangtao Li
2023-03-22 23:36   ` Damien Le Moal
2023-03-22 23:32 ` [PATCH v3 02/10] f2fs: " Damien Le Moal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=287798df-2da6-0158-cbdc-616e587e58bd@linux.alibaba.com \
    --to=hsiangkao@linux.alibaba.com \
    --cc=chao@kernel.org \
    --cc=damien.lemoal@opensource.wdc.com \
    --cc=frank.li@vivo.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=huyue2@coolpad.com \
    --cc=jefflexu@linux.alibaba.com \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=xiang@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox