* [PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super
@ 2012-11-29 6:35 Abhijit Pawar
2012-11-29 15:36 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Abhijit Pawar @ 2012-11-29 6:35 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, Abhijit Pawar
set_anon_super does not use the second parameter in its implementation.
So there is no need to pass on the second parameter.
Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com>
---
fs/sysfs/mount.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index db940a9..3e3f7ea 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -89,7 +89,7 @@ static int sysfs_test_super(struct super_block *sb, void *data)
static int sysfs_set_super(struct super_block *sb, void *data)
{
int error;
- error = set_anon_super(sb, data);
+ error = set_anon_super(sb, NULL);
if (!error)
sb->s_fs_info = data;
return error;
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super
2012-11-29 6:35 [PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super Abhijit Pawar
@ 2012-11-29 15:36 ` Greg Kroah-Hartman
2012-11-30 5:32 ` Abhijit Pawar
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2012-11-29 15:36 UTC (permalink / raw)
To: Abhijit Pawar; +Cc: linux-kernel
On Thu, Nov 29, 2012 at 12:05:45PM +0530, Abhijit Pawar wrote:
> set_anon_super does not use the second parameter in its implementation.
> So there is no need to pass on the second parameter.
Why not just remove the second parameter from the call then?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super
2012-11-29 15:36 ` Greg Kroah-Hartman
@ 2012-11-30 5:32 ` Abhijit Pawar
0 siblings, 0 replies; 3+ messages in thread
From: Abhijit Pawar @ 2012-11-30 5:32 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Abhijit Pawar, linux-kernel
On 11/29/2012 09:06 PM, Greg Kroah-Hartman wrote:
> On Thu, Nov 29, 2012 at 12:05:45PM +0530, Abhijit Pawar wrote:
>> set_anon_super does not use the second parameter in its implementation.
>> So there is no need to pass on the second parameter.
>
> Why not just remove the second parameter from the call then?
>
> thanks,
>
> greg k-h
>
This is used as a callback function. So changing the signature will
affect many other filesystems who use the default function rather than
the overridden one.
--
-
Abhijit
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-30 5:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 6:35 [PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super Abhijit Pawar
2012-11-29 15:36 ` Greg Kroah-Hartman
2012-11-30 5:32 ` Abhijit Pawar
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).