diff mbox

[v9,1/5] iomap: add private pointer to struct iomap

Message ID 20180615121922.13237-2-agruenba@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andreas Gruenbacher June 15, 2018, 12:19 p.m. UTC
Add a private pointer to struct iomap to allow filesystems to pass data
from iomap_begin to iomap_end.  Will be used by gfs2 for passing on the
on-disk inode buffer head.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
---
 include/linux/iomap.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Andreas Gruenbacher June 18, 2018, 3:25 p.m. UTC | #1
Hi Christoph,

On 15 June 2018 at 14:19, Andreas Gruenbacher <agruenba@redhat.com> wrote:
> Add a private pointer to struct iomap to allow filesystems to pass data
> from iomap_begin to iomap_end.  Will be used by gfs2 for passing on the
> on-disk inode buffer head.
>
> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
> ---
>  include/linux/iomap.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/iomap.h b/include/linux/iomap.h
> index 43cc9208599f..9962dcb836b9 100644
> --- a/include/linux/iomap.h
> +++ b/include/linux/iomap.h
> @@ -59,6 +59,7 @@ struct iomap {
>                 struct dax_device   *dax_dev;
>                 void                *inline_data;
>         };
> +       void                    *private; /* filesystem private */
>
>         /*
>          * Called when finished processing a page in the mapping returned in
> --
> 2.17.1

any objections? If not, could you please add this to the shared branch?

Thanks,
Andreas
Christoph Hellwig June 19, 2018, 6:29 a.m. UTC | #2
On Fri, Jun 15, 2018 at 02:19:18PM +0200, Andreas Gruenbacher wrote:
> Add a private pointer to struct iomap to allow filesystems to pass data
> from iomap_begin to iomap_end.  Will be used by gfs2 for passing on the
> on-disk inode buffer head.
> 
> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox

Patch

diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 43cc9208599f..9962dcb836b9 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -59,6 +59,7 @@  struct iomap {
 		struct dax_device   *dax_dev;
 		void		    *inline_data;
 	};
+	void			*private; /* filesystem private */
 
 	/*
 	 * Called when finished processing a page in the mapping returned in