linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 16/24] btrfs: return actual error on btrfs_init_sysfs
@ 2014-06-17 14:32 Jeff Liu
  2014-06-18  1:52 ` Jeff Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Liu @ 2014-06-17 14:32 UTC (permalink / raw)
  To: clm, Josef Bacik; +Cc: linux-btrfs

From: Jie Liu <jeff.liu@oracle.com>

Return the actual error code if call kset_create_and_add() failed

Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
 fs/btrfs/sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index df39458..8f7dfa7 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -705,8 +705,8 @@ int btrfs_init_sysfs(void)
 	int ret;
 
 	btrfs_kset = kset_create_and_add("btrfs", NULL, fs_kobj);
-	if (!btrfs_kset)
-		return -ENOMEM;
+	if (IS_ERR(btrfs_kset))
+		return PTR_ERR(btrfs_kset);
 
 	ret = btrfs_init_debugfs();
 	if (ret)
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 16/24] btrfs: return actual error on btrfs_init_sysfs
  2014-06-17 14:32 [PATCH 16/24] btrfs: return actual error on btrfs_init_sysfs Jeff Liu
@ 2014-06-18  1:52 ` Jeff Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Liu @ 2014-06-18  1:52 UTC (permalink / raw)
  To: clm, Josef Bacik; +Cc: linux-btrfs

Hi,

On 06/17/2014 22:32 PM, Jeff Liu wrote:
> From: Jie Liu <jeff.liu@oracle.com>
> 
> Return the actual error code if call kset_create_and_add() failed
> 
> Cc: Chris Mason <clm@fb.com>
> Cc: Josef Bacik <jbacik@fb.com>
> Signed-off-by: Jie Liu <jeff.liu@oracle.com>

Please ignore this patch because Greg think that is incorrect.


Cheers,
-Jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-18  1:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 14:32 [PATCH 16/24] btrfs: return actual error on btrfs_init_sysfs Jeff Liu
2014-06-18  1:52 ` Jeff Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).