[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230322165905.55389-6-frank.li@vivo.com>
Date: Thu, 23 Mar 2023 00:59:02 +0800
From: Yangtao Li <frank.li@...o.com>
To: "Darrick J. Wong" <djwong@...nel.org>
Cc: Yangtao Li <frank.li@...o.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Damien Le Moal <damien.lemoal@...nsource.wdc.com>,
linux-xfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v3 07/10] xfs: convert to kobject_del_and_put()
Use kobject_del_and_put() to simplify code.
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: Damien Le Moal <damien.lemoal@...nsource.wdc.com>
Signed-off-by: Yangtao Li <frank.li@...o.com>
Acked-by: Darrick J. Wong <djwong@...nel.org>
---
fs/xfs/xfs_sysfs.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_sysfs.h b/fs/xfs/xfs_sysfs.h
index 148893ebfdef..e2ff063e2c29 100644
--- a/fs/xfs/xfs_sysfs.h
+++ b/fs/xfs/xfs_sysfs.h
@@ -48,8 +48,7 @@ static inline void
xfs_sysfs_del(
struct xfs_kobj *kobj)
{
- kobject_del(&kobj->kobject);
- kobject_put(&kobj->kobject);
+ kobject_del_and_put(&kobj->kobject);
wait_for_completion(&kobj->complete);
}
--
2.35.1
Powered by blists - more mailing lists