* [PATCH 21/24] f2fs: return actual error on init_f2fs_fs
@ 2014-06-17 14:32 Jeff Liu
2014-06-18 1:50 ` Jeff Liu
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Liu @ 2014-06-17 14:32 UTC (permalink / raw)
To: jaegeuk, cm224.lee; +Cc: linux-f2fs-devel
From: Jie Liu <jeff.liu@oracle.com>
Return the actual error code if kset_create_and_add() failed
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
fs/f2fs/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index b2b1863..74470cb 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1175,8 +1175,8 @@ static int __init init_f2fs_fs(void)
if (err)
goto free_gc_caches;
f2fs_kset = kset_create_and_add("f2fs", NULL, fs_kobj);
- if (!f2fs_kset) {
- err = -ENOMEM;
+ if (IS_ERR(f2fs_kset)) {
+ err = PTR_ERR(f2fs_kset);
goto free_checkpoint_caches;
}
err = register_filesystem(&f2fs_fs_type);
--
1.8.3.2
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 21/24] f2fs: return actual error on init_f2fs_fs
2014-06-17 14:32 [PATCH 21/24] f2fs: return actual error on init_f2fs_fs Jeff Liu
@ 2014-06-18 1:50 ` Jeff Liu
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Liu @ 2014-06-18 1:50 UTC (permalink / raw)
To: jaegeuk, cm224.lee; +Cc: linux-f2fs-devel
Hi,
On 06/17/2014 22:32 PM, Jeff Liu wrote:
> From: Jie Liu <jeff.liu@oracle.com>
>
> Return the actual error code if kset_create_and_add() failed
>
> Cc: Jaegeuk Kim <jaegeuk@kernel.org>
> Cc: Changman Lee <cm224.lee@samsung.com>
> Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Please ignore this patch because Greg think that is incorrect.
Cheers,
-Jeff
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-18 1:50 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 21/24] f2fs: return actual error on init_f2fs_fs Jeff Liu
2014-06-18 1:50 ` Jeff Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.