public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] splice exports
@ 2006-03-31  4:06 Jeff Garzik
  2006-03-31  7:17 ` Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jeff Garzik @ 2006-03-31  4:06 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds, axboe, linux-kernel


Woe be unto he who builds their filesystems as modules.

Signed-off-by: Jeff Garzik <jeff@garzik.org>

diff --git a/fs/splice.c b/fs/splice.c
index 4a026f9..7c2bbf1 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -22,6 +22,7 @@
 #include <linux/pipe_fs_i.h>
 #include <linux/mm_inline.h>
 #include <linux/swap.h>
+#include <linux/module.h>
 
 /*
  * Passed to the actors
@@ -567,6 +568,9 @@ ssize_t generic_splice_sendpage(struct i
 	return move_from_pipe(inode, out, len, flags, pipe_to_sendpage);
 }
 
+EXPORT_SYMBOL(generic_file_splice_write);
+EXPORT_SYMBOL(generic_file_splice_read);
+
 static long do_splice_from(struct inode *pipe, struct file *out, size_t len,
 			   unsigned int flags)
 {

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

* Re: [PATCH] splice exports
  2006-03-31  4:06 [PATCH] splice exports Jeff Garzik
@ 2006-03-31  7:17 ` Jens Axboe
  2006-03-31 11:01 ` Arjan van de Ven
  2006-03-31 13:28 ` Sam Ravnborg
  2 siblings, 0 replies; 11+ messages in thread
From: Jens Axboe @ 2006-03-31  7:17 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Andrew Morton, Linus Torvalds, linux-kernel

On Thu, Mar 30 2006, Jeff Garzik wrote:
> 
> Woe be unto he who builds their filesystems as modules.
> 
> Signed-off-by: Jeff Garzik <jeff@garzik.org>
> 
> diff --git a/fs/splice.c b/fs/splice.c
> index 4a026f9..7c2bbf1 100644
> --- a/fs/splice.c
> +++ b/fs/splice.c
> @@ -22,6 +22,7 @@
>  #include <linux/pipe_fs_i.h>
>  #include <linux/mm_inline.h>
>  #include <linux/swap.h>
> +#include <linux/module.h>
>  
>  /*
>   * Passed to the actors
> @@ -567,6 +568,9 @@ ssize_t generic_splice_sendpage(struct i
>  	return move_from_pipe(inode, out, len, flags, pipe_to_sendpage);
>  }
>  
> +EXPORT_SYMBOL(generic_file_splice_write);
> +EXPORT_SYMBOL(generic_file_splice_read);
> +
>  static long do_splice_from(struct inode *pipe, struct file *out, size_t len,
>  			   unsigned int flags)
>  {

Thanks Jeff!

-- 
Jens Axboe


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

* Re: [PATCH] splice exports
  2006-03-31  4:06 [PATCH] splice exports Jeff Garzik
  2006-03-31  7:17 ` Jens Axboe
@ 2006-03-31 11:01 ` Arjan van de Ven
  2006-03-31 11:02   ` Jens Axboe
  2006-03-31 13:28 ` Sam Ravnborg
  2 siblings, 1 reply; 11+ messages in thread
From: Arjan van de Ven @ 2006-03-31 11:01 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Andrew Morton, Linus Torvalds, axboe, linux-kernel

On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
> Woe be unto he who builds their filesystems as modules.


since splice support is highly linux specific and new.. shouldn't these
be _GPL exports?



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

* Re: [PATCH] splice exports
  2006-03-31 11:01 ` Arjan van de Ven
@ 2006-03-31 11:02   ` Jens Axboe
  2006-03-31 14:00     ` Jeff Garzik
  0 siblings, 1 reply; 11+ messages in thread
From: Jens Axboe @ 2006-03-31 11:02 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Jeff Garzik, Andrew Morton, Linus Torvalds, linux-kernel

On Fri, Mar 31 2006, Arjan van de Ven wrote:
> On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
> > Woe be unto he who builds their filesystems as modules.
> 
> 
> since splice support is highly linux specific and new.. shouldn't these
> be _GPL exports?

Yes they should, I'll add that to the current splice tree.

-- 
Jens Axboe


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

* Re: [PATCH] splice exports
  2006-03-31  4:06 [PATCH] splice exports Jeff Garzik
  2006-03-31  7:17 ` Jens Axboe
  2006-03-31 11:01 ` Arjan van de Ven
@ 2006-03-31 13:28 ` Sam Ravnborg
  2006-03-31 13:31   ` Jens Axboe
  2 siblings, 1 reply; 11+ messages in thread
From: Sam Ravnborg @ 2006-03-31 13:28 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Andrew Morton, Linus Torvalds, axboe, linux-kernel

On Thu, Mar 30, 2006 at 11:06:13PM -0500, Jeff Garzik wrote:
  /*
>   * Passed to the actors
> @@ -567,6 +568,9 @@ ssize_t generic_splice_sendpage(struct i
>  	return move_from_pipe(inode, out, len, flags, pipe_to_sendpage);
>  }
>  
> +EXPORT_SYMBOL(generic_file_splice_write);
> +EXPORT_SYMBOL(generic_file_splice_read);
Can we please have them right after the closing brace of the function
defining these function instead.

	Sam

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

* Re: [PATCH] splice exports
  2006-03-31 13:28 ` Sam Ravnborg
@ 2006-03-31 13:31   ` Jens Axboe
  0 siblings, 0 replies; 11+ messages in thread
From: Jens Axboe @ 2006-03-31 13:31 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Jeff Garzik, Andrew Morton, Linus Torvalds, linux-kernel

On Fri, Mar 31 2006, Sam Ravnborg wrote:
> On Thu, Mar 30, 2006 at 11:06:13PM -0500, Jeff Garzik wrote:
>   /*
> >   * Passed to the actors
> > @@ -567,6 +568,9 @@ ssize_t generic_splice_sendpage(struct i
> >  	return move_from_pipe(inode, out, len, flags, pipe_to_sendpage);
> >  }
> >  
> > +EXPORT_SYMBOL(generic_file_splice_write);
> > +EXPORT_SYMBOL(generic_file_splice_read);
> Can we please have them right after the closing brace of the function
> defining these function instead.

http://brick.kernel.dk/git/?p=linux-2.6-block.git;a=commitdiff;h=ef9f6c8461ec21ab5ce02890e1d522e300e2703e

-- 
Jens Axboe


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

* Re: [PATCH] splice exports
  2006-03-31 11:02   ` Jens Axboe
@ 2006-03-31 14:00     ` Jeff Garzik
  2006-03-31 18:36       ` Jens Axboe
  0 siblings, 1 reply; 11+ messages in thread
From: Jeff Garzik @ 2006-03-31 14:00 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Arjan van de Ven, Andrew Morton, Linus Torvalds, linux-kernel

Jens Axboe wrote:
> On Fri, Mar 31 2006, Arjan van de Ven wrote:
>> On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
>>> Woe be unto he who builds their filesystems as modules.
>>
>> since splice support is highly linux specific and new.. shouldn't these
>> be _GPL exports?
> 
> Yes they should, I'll add that to the current splice tree.

Why?  We don't usually restrict filesystems in such ways...  I would 
rather a binary-only module reference generic_file_splice_read() than 
create its own.

	Jeff




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

* Re: [PATCH] splice exports
  2006-03-31 14:00     ` Jeff Garzik
@ 2006-03-31 18:36       ` Jens Axboe
  2006-03-31 23:14         ` Jeff Garzik
  0 siblings, 1 reply; 11+ messages in thread
From: Jens Axboe @ 2006-03-31 18:36 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Arjan van de Ven, Andrew Morton, Linus Torvalds, linux-kernel

On Fri, Mar 31 2006, Jeff Garzik wrote:
> Jens Axboe wrote:
> >On Fri, Mar 31 2006, Arjan van de Ven wrote:
> >>On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
> >>>Woe be unto he who builds their filesystems as modules.
> >>
> >>since splice support is highly linux specific and new.. shouldn't these
> >>be _GPL exports?
> >
> >Yes they should, I'll add that to the current splice tree.
> 
> Why?  We don't usually restrict filesystems in such ways...  I would 
> rather a binary-only module reference generic_file_splice_read() than 
> create its own.

You could use that very same argument for any piece of the kernel, then,
so I don't think that adds much value to _not_ exporting it GPL.

-- 
Jens Axboe


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

* Re: [PATCH] splice exports
  2006-03-31 18:36       ` Jens Axboe
@ 2006-03-31 23:14         ` Jeff Garzik
  2006-04-01  1:33           ` Arjan van de Ven
  0 siblings, 1 reply; 11+ messages in thread
From: Jeff Garzik @ 2006-03-31 23:14 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Arjan van de Ven, Andrew Morton, Linus Torvalds, linux-kernel

Jens Axboe wrote:
> On Fri, Mar 31 2006, Jeff Garzik wrote:
>> Jens Axboe wrote:
>>> On Fri, Mar 31 2006, Arjan van de Ven wrote:
>>>> On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
>>>>> Woe be unto he who builds their filesystems as modules.
>>>> since splice support is highly linux specific and new.. shouldn't these
>>>> be _GPL exports?
>>> Yes they should, I'll add that to the current splice tree.
>> Why?  We don't usually restrict filesystems in such ways...  I would 
>> rather a binary-only module reference generic_file_splice_read() than 
>> create its own.
> 
> You could use that very same argument for any piece of the kernel, then,
> so I don't think that adds much value to _not_ exporting it GPL.

Not really, because I'm considering the Real World(tm) users, not 
abstract theory :)  The other filesystem junk is exported non-GPL, and 
existing binary-only filesystems use that stuff.

IOW its a bit rude to say "oh you can have your BO filesystem, just not 
splice support."

	Jeff




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

* Re: [PATCH] splice exports
  2006-03-31 23:14         ` Jeff Garzik
@ 2006-04-01  1:33           ` Arjan van de Ven
  2006-04-02 18:02             ` Jens Axboe
  0 siblings, 1 reply; 11+ messages in thread
From: Arjan van de Ven @ 2006-04-01  1:33 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Jens Axboe, Andrew Morton, Linus Torvalds, linux-kernel

On Fri, 2006-03-31 at 18:14 -0500, Jeff Garzik wrote:
> Jens Axboe wrote:
> > On Fri, Mar 31 2006, Jeff Garzik wrote:
> >> Jens Axboe wrote:
> >>> On Fri, Mar 31 2006, Arjan van de Ven wrote:
> >>>> On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
> >>>>> Woe be unto he who builds their filesystems as modules.
> >>>> since splice support is highly linux specific and new.. shouldn't these
> >>>> be _GPL exports?
> >>> Yes they should, I'll add that to the current splice tree.
> >> Why?  We don't usually restrict filesystems in such ways...  I would 
> >> rather a binary-only module reference generic_file_splice_read() than 
> >> create its own.
> > 
> > You could use that very same argument for any piece of the kernel, then,
> > so I don't think that adds much value to _not_ exporting it GPL.
> 
> Not really, because I'm considering the Real World(tm) users, not 
> abstract theory :)  The other filesystem junk is exported non-GPL, and 
> existing binary-only filesystems use that stuff.
> 
> IOW its a bit rude to say "oh you can have your BO filesystem, just not 
> splice support."


it's a bit like saying "you can use all the standard unix interfaces,
but these are very linux specific"; eg the same arguments for making lsm
and other pieces _GPL; they're so linux specific that users that use
these do so with linux in mind etc



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

* Re: [PATCH] splice exports
  2006-04-01  1:33           ` Arjan van de Ven
@ 2006-04-02 18:02             ` Jens Axboe
  0 siblings, 0 replies; 11+ messages in thread
From: Jens Axboe @ 2006-04-02 18:02 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Jeff Garzik, Andrew Morton, Linus Torvalds, linux-kernel

On Sat, Apr 01 2006, Arjan van de Ven wrote:
> On Fri, 2006-03-31 at 18:14 -0500, Jeff Garzik wrote:
> > Jens Axboe wrote:
> > > On Fri, Mar 31 2006, Jeff Garzik wrote:
> > >> Jens Axboe wrote:
> > >>> On Fri, Mar 31 2006, Arjan van de Ven wrote:
> > >>>> On Thu, 2006-03-30 at 23:06 -0500, Jeff Garzik wrote:
> > >>>>> Woe be unto he who builds their filesystems as modules.
> > >>>> since splice support is highly linux specific and new.. shouldn't these
> > >>>> be _GPL exports?
> > >>> Yes they should, I'll add that to the current splice tree.
> > >> Why?  We don't usually restrict filesystems in such ways...  I would 
> > >> rather a binary-only module reference generic_file_splice_read() than 
> > >> create its own.
> > > 
> > > You could use that very same argument for any piece of the kernel, then,
> > > so I don't think that adds much value to _not_ exporting it GPL.
> > 
> > Not really, because I'm considering the Real World(tm) users, not 
> > abstract theory :)  The other filesystem junk is exported non-GPL, and 
> > existing binary-only filesystems use that stuff.
> > 
> > IOW its a bit rude to say "oh you can have your BO filesystem, just not 
> > splice support."
> 
> 
> it's a bit like saying "you can use all the standard unix interfaces,
> but these are very linux specific"; eg the same arguments for making lsm
> and other pieces _GPL; they're so linux specific that users that use
> these do so with linux in mind etc

Linus seems to agree with the _GPL not being appropriate as well, so I
guess I'll bow to the majority. This time :-)

-- 
Jens Axboe


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

end of thread, other threads:[~2006-04-02 18:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-31  4:06 [PATCH] splice exports Jeff Garzik
2006-03-31  7:17 ` Jens Axboe
2006-03-31 11:01 ` Arjan van de Ven
2006-03-31 11:02   ` Jens Axboe
2006-03-31 14:00     ` Jeff Garzik
2006-03-31 18:36       ` Jens Axboe
2006-03-31 23:14         ` Jeff Garzik
2006-04-01  1:33           ` Arjan van de Ven
2006-04-02 18:02             ` Jens Axboe
2006-03-31 13:28 ` Sam Ravnborg
2006-03-31 13:31   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox