All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] fs: gfs2: Adding new return type vm_fault_t
@ 2018-04-14 19:41 Souptick Joarder
  2018-04-16 16:58   ` [Cluster-devel] " Bob Peterson
  0 siblings, 1 reply; 8+ messages in thread
From: Souptick Joarder @ 2018-04-14 19:41 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Use new return type vm_fault_t for page_mkwrite
handler.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
---
 fs/gfs2/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 4f88e20..2c471d6 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -387,7 +387,7 @@ static int gfs2_allocate_page_backing(struct page *page)
  * blocks allocated on disk to back that page.
  */
 
-static int gfs2_page_mkwrite(struct vm_fault *vmf)
+static vm_fault_t gfs2_page_mkwrite(struct vm_fault *vmf)
 {
 	struct page *page = vmf->page;
 	struct inode *inode = file_inode(vmf->vma->vm_file);
-- 
1.9.1



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

* Re: [PATCH] fs: gfs2: Adding new return type vm_fault_t
  2018-04-14 19:41 [Cluster-devel] [PATCH] fs: gfs2: Adding new return type vm_fault_t Souptick Joarder
@ 2018-04-16 16:58   ` Bob Peterson
  0 siblings, 0 replies; 8+ messages in thread
From: Bob Peterson @ 2018-04-16 16:58 UTC (permalink / raw)
  To: Souptick Joarder, Al Viro, linux-fsdevel; +Cc: swhiteho, cluster-devel, willy

----- Original Message -----
> Use new return type vm_fault_t for page_mkwrite
> handler.
> 
> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
> Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
> ---
>  fs/gfs2/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
> index 4f88e20..2c471d6 100644
> --- a/fs/gfs2/file.c
> +++ b/fs/gfs2/file.c
> @@ -387,7 +387,7 @@ static int gfs2_allocate_page_backing(struct page *page)
>   * blocks allocated on disk to back that page.
>   */
>  
> -static int gfs2_page_mkwrite(struct vm_fault *vmf)
> +static vm_fault_t gfs2_page_mkwrite(struct vm_fault *vmf)
>  {
>  	struct page *page = vmf->page;
>  	struct inode *inode = file_inode(vmf->vma->vm_file);
> --
> 1.9.1

Hi,

This patch is straightforward enough, but there are a lot of other
file systems that need similar patches. Shouldn't you do one big
patch set that fixes several file systems at once and run it through
Viro's kernel or Linus's kernel or something?
Adding Viro and linux-fsdevel for more opinions.

Regards,

Bob Peterson

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

* [Cluster-devel] [PATCH] fs: gfs2: Adding new return type vm_fault_t
@ 2018-04-16 16:58   ` Bob Peterson
  0 siblings, 0 replies; 8+ messages in thread
From: Bob Peterson @ 2018-04-16 16:58 UTC (permalink / raw)
  To: cluster-devel.redhat.com

----- Original Message -----
> Use new return type vm_fault_t for page_mkwrite
> handler.
> 
> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
> Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
> ---
>  fs/gfs2/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
> index 4f88e20..2c471d6 100644
> --- a/fs/gfs2/file.c
> +++ b/fs/gfs2/file.c
> @@ -387,7 +387,7 @@ static int gfs2_allocate_page_backing(struct page *page)
>   * blocks allocated on disk to back that page.
>   */
>  
> -static int gfs2_page_mkwrite(struct vm_fault *vmf)
> +static vm_fault_t gfs2_page_mkwrite(struct vm_fault *vmf)
>  {
>  	struct page *page = vmf->page;
>  	struct inode *inode = file_inode(vmf->vma->vm_file);
> --
> 1.9.1

Hi,

This patch is straightforward enough, but there are a lot of other
file systems that need similar patches. Shouldn't you do one big
patch set that fixes several file systems at once and run it through
Viro's kernel or Linus's kernel or something?
Adding Viro and linux-fsdevel for more opinions.

Regards,

Bob Peterson



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

* Re: [PATCH] fs: gfs2: Adding new return type vm_fault_t
  2018-04-16 16:58   ` [Cluster-devel] " Bob Peterson
@ 2018-04-16 17:50     ` Souptick Joarder
  -1 siblings, 0 replies; 8+ messages in thread
From: Souptick Joarder @ 2018-04-16 17:50 UTC (permalink / raw)
  To: Bob Peterson
  Cc: Al Viro, linux-fsdevel, swhiteho, cluster-devel, Matthew Wilcox

> Hi,
>
> This patch is straightforward enough, but there are a lot of other
> file systems that need similar patches. Shouldn't you do one big
> patch set that fixes several file systems at once and run it through
> Viro's kernel or Linus's kernel or something?
> Adding Viro and linux-fsdevel for more opinions.

The plan for these patches is to introduce the typedef, initially just
as documentation ("These functions should return a VM_FAULT_ status").
We'll trickle the patches to individual drivers/filesystems in through
the maintainers, as far as possible.  Then we'll change the typedef to
an unsigned int and break the compilation of any unconverted
drivers/filesystems.

We have already started sending out drivers/filesystems changes
to different maintainers.

Reference commit id - 1c8f422059ae5da07db7406ab916203f9417e396

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

* [Cluster-devel] [PATCH] fs: gfs2: Adding new return type vm_fault_t
@ 2018-04-16 17:50     ` Souptick Joarder
  0 siblings, 0 replies; 8+ messages in thread
From: Souptick Joarder @ 2018-04-16 17:50 UTC (permalink / raw)
  To: cluster-devel.redhat.com

> Hi,
>
> This patch is straightforward enough, but there are a lot of other
> file systems that need similar patches. Shouldn't you do one big
> patch set that fixes several file systems at once and run it through
> Viro's kernel or Linus's kernel or something?
> Adding Viro and linux-fsdevel for more opinions.

The plan for these patches is to introduce the typedef, initially just
as documentation ("These functions should return a VM_FAULT_ status").
We'll trickle the patches to individual drivers/filesystems in through
the maintainers, as far as possible.  Then we'll change the typedef to
an unsigned int and break the compilation of any unconverted
drivers/filesystems.

We have already started sending out drivers/filesystems changes
to different maintainers.

Reference commit id - 1c8f422059ae5da07db7406ab916203f9417e396



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

* Re: [PATCH] fs: gfs2: Adding new return type vm_fault_t
  2018-04-16 17:50     ` [Cluster-devel] " Souptick Joarder
@ 2018-04-17  2:08       ` Dave Chinner
  -1 siblings, 0 replies; 8+ messages in thread
From: Dave Chinner @ 2018-04-17  2:08 UTC (permalink / raw)
  To: Souptick Joarder
  Cc: Bob Peterson, Al Viro, linux-fsdevel, swhiteho, cluster-devel,
	Matthew Wilcox

On Mon, Apr 16, 2018 at 11:20:59PM +0530, Souptick Joarder wrote:
> > Hi,
> >
> > This patch is straightforward enough, but there are a lot of other
> > file systems that need similar patches. Shouldn't you do one big
> > patch set that fixes several file systems at once and run it through
> > Viro's kernel or Linus's kernel or something?
> > Adding Viro and linux-fsdevel for more opinions.
> 
> The plan for these patches is to introduce the typedef, initially just
> as documentation ("These functions should return a VM_FAULT_ status").
> We'll trickle the patches to individual drivers/filesystems in through
> the maintainers, as far as possible.  Then we'll change the typedef to
> an unsigned int and break the compilation of any unconverted
> drivers/filesystems.
>
> We have already started sending out drivers/filesystems changes
> to different maintainers.

Yes, we can see that. The response you are getting is "this is not
how we do cross-subsystem API changes.  Why are you doing it this
way?"

i.e. the problem being pointed out is that your process has not
followed the correct/normal process for proposing, reviewing and
mering cross-subsystem API changes. Bob has raised the same
questions as both Christoph and Darrick have asked in response to
the XFS patch. I only implied these questions by asking about
introducing useless typedefs with no context for reviewers...

I'd really like to have Darrick's questions answered(*) in a
constructive, non-abusive manner - I'll quote it here to get it all
in one thread on -fsdevel:

| ...hm, the original mm patch wasn't cc'd to fsdevel either, so that's
| probably why I never heard of any of this until now.
|
| So, uh, why wasn't this whole series (all the mm changes and all the
| required fs changes) sent out for review prior to the merge window?

We're not asking for a description of what you are doing - we are
asking why the normal processes for proposing and merging such a
change is not being followed, and how you plan to rectify that.

Cheers,

Dave.

https://marc.info/?l=linux-xfs&m=152389824107375&w=2
-- 
Dave Chinner
david@fromorbit.com

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

* [Cluster-devel] [PATCH] fs: gfs2: Adding new return type vm_fault_t
@ 2018-04-17  2:08       ` Dave Chinner
  0 siblings, 0 replies; 8+ messages in thread
From: Dave Chinner @ 2018-04-17  2:08 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On Mon, Apr 16, 2018 at 11:20:59PM +0530, Souptick Joarder wrote:
> > Hi,
> >
> > This patch is straightforward enough, but there are a lot of other
> > file systems that need similar patches. Shouldn't you do one big
> > patch set that fixes several file systems at once and run it through
> > Viro's kernel or Linus's kernel or something?
> > Adding Viro and linux-fsdevel for more opinions.
> 
> The plan for these patches is to introduce the typedef, initially just
> as documentation ("These functions should return a VM_FAULT_ status").
> We'll trickle the patches to individual drivers/filesystems in through
> the maintainers, as far as possible.  Then we'll change the typedef to
> an unsigned int and break the compilation of any unconverted
> drivers/filesystems.
>
> We have already started sending out drivers/filesystems changes
> to different maintainers.

Yes, we can see that. The response you are getting is "this is not
how we do cross-subsystem API changes.  Why are you doing it this
way?"

i.e. the problem being pointed out is that your process has not
followed the correct/normal process for proposing, reviewing and
mering cross-subsystem API changes. Bob has raised the same
questions as both Christoph and Darrick have asked in response to
the XFS patch. I only implied these questions by asking about
introducing useless typedefs with no context for reviewers...

I'd really like to have Darrick's questions answered(*) in a
constructive, non-abusive manner - I'll quote it here to get it all
in one thread on -fsdevel:

| ...hm, the original mm patch wasn't cc'd to fsdevel either, so that's
| probably why I never heard of any of this until now.
|
| So, uh, why wasn't this whole series (all the mm changes and all the
| required fs changes) sent out for review prior to the merge window?

We're not asking for a description of what you are doing - we are
asking why the normal processes for proposing and merging such a
change is not being followed, and how you plan to rectify that.

Cheers,

Dave.

https://marc.info/?l=linux-xfs&m=152389824107375&w=2
-- 
Dave Chinner
david at fromorbit.com



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

* [PATCH] fs: gfs2: Adding new return type vm_fault_t
@ 2018-07-02 16:46 Souptick Joarder
  0 siblings, 0 replies; 8+ messages in thread
From: Souptick Joarder @ 2018-07-02 16:46 UTC (permalink / raw)
  To: akpm; +Cc: rpeterso, agruenba, cluster-devel, linux-kernel, willy

Use new return type vm_fault_t for gfs2_page_mkwrite
handler.

see commit 1c8f422059ae ("mm: change return type to
vm_fault_t") for reference.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
---
 fs/gfs2/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 4f88e20..2c471d6 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -387,7 +387,7 @@ static int gfs2_allocate_page_backing(struct page *page)
  * blocks allocated on disk to back that page.
  */
 
-static int gfs2_page_mkwrite(struct vm_fault *vmf)
+static vm_fault_t gfs2_page_mkwrite(struct vm_fault *vmf)
 {
 	struct page *page = vmf->page;
 	struct inode *inode = file_inode(vmf->vma->vm_file);
-- 
1.9.1


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

end of thread, other threads:[~2018-07-02 16:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-14 19:41 [Cluster-devel] [PATCH] fs: gfs2: Adding new return type vm_fault_t Souptick Joarder
2018-04-16 16:58 ` Bob Peterson
2018-04-16 16:58   ` [Cluster-devel] " Bob Peterson
2018-04-16 17:50   ` Souptick Joarder
2018-04-16 17:50     ` [Cluster-devel] " Souptick Joarder
2018-04-17  2:08     ` Dave Chinner
2018-04-17  2:08       ` [Cluster-devel] " Dave Chinner
2018-07-02 16:46 Souptick Joarder

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.