* [PATCH] dax: dirty inode only if required
@ 2016-02-04 14:02 Dmitry Monakhov
2016-02-04 14:33 ` Jan Kara
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Monakhov @ 2016-02-04 14:02 UTC (permalink / raw)
To: Ross Zwisler
Cc: linux-kernel, H. Peter Anvin, J. Bruce Fields, Theodore Ts'o,
Alexander Viro, Andreas Dilger, Dave Chinner, Ingo Molnar,
Jan Kara, Jeff Layton, Matthew Wilcox, Thomas Gleixner,
linux-ext4, linux-fsdevel, Linux MM, linux-nvdimm, X86 ML,
XFS Developers, Andrew Morton, Matthew Wilcox, Dave Hansen
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
fs/dax.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/dax.c b/fs/dax.c
index e0e9358..fc2e314 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -358,7 +358,8 @@ static int dax_radix_entry(struct address_space *mapping, pgoff_t index,
void *entry;
WARN_ON_ONCE(pmd_entry && !dirty);
- __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
+ if (dirty)
+ __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
spin_lock_irq(&mapping->tree_lock);
--
1.8.3.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dax: dirty inode only if required
2016-02-04 14:02 [PATCH] dax: dirty inode only if required Dmitry Monakhov
@ 2016-02-04 14:33 ` Jan Kara
2016-02-04 15:50 ` Ross Zwisler
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kara @ 2016-02-04 14:33 UTC (permalink / raw)
To: Dmitry Monakhov
Cc: Ross Zwisler, linux-kernel, H. Peter Anvin, J. Bruce Fields,
Theodore Ts'o, Alexander Viro, Andreas Dilger, Dave Chinner,
Ingo Molnar, Jan Kara, Jeff Layton, Matthew Wilcox,
Thomas Gleixner, linux-ext4, linux-fsdevel, Linux MM,
linux-nvdimm, X86 ML, XFS Developers, Andrew Morton,
Matthew Wilcox, Dave Hansen
On Thu 04-02-16 17:02:02, Dmitry Monakhov wrote:
>
> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Makes sense. You can add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/dax.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/fs/dax.c b/fs/dax.c
> index e0e9358..fc2e314 100644
> --- a/fs/dax.c
> +++ b/fs/dax.c
> @@ -358,7 +358,8 @@ static int dax_radix_entry(struct address_space *mapping, pgoff_t index,
> void *entry;
>
> WARN_ON_ONCE(pmd_entry && !dirty);
> - __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
> + if (dirty)
> + __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
>
> spin_lock_irq(&mapping->tree_lock);
>
> --
> 1.8.3.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dax: dirty inode only if required
2016-02-04 14:33 ` Jan Kara
@ 2016-02-04 15:50 ` Ross Zwisler
0 siblings, 0 replies; 3+ messages in thread
From: Ross Zwisler @ 2016-02-04 15:50 UTC (permalink / raw)
To: Jan Kara
Cc: Dmitry Monakhov, Ross Zwisler, linux-kernel, H. Peter Anvin,
J. Bruce Fields, Theodore Ts'o, Alexander Viro,
Andreas Dilger, Dave Chinner, Ingo Molnar, Jan Kara, Jeff Layton,
Matthew Wilcox, Thomas Gleixner, linux-ext4, linux-fsdevel,
Linux MM, linux-nvdimm, X86 ML, XFS Developers, Andrew Morton,
Matthew Wilcox, Da
On Thu, Feb 04, 2016 at 03:33:44PM +0100, Jan Kara wrote:
> On Thu 04-02-16 17:02:02, Dmitry Monakhov wrote:
> >
> > Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
>
> Makes sense. You can add:
>
> Reviewed-by: Jan Kara <jack@suse.cz>
Looks good to me as well.
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
> Honza
> > ---
> > fs/dax.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/fs/dax.c b/fs/dax.c
> > index e0e9358..fc2e314 100644
> > --- a/fs/dax.c
> > +++ b/fs/dax.c
> > @@ -358,7 +358,8 @@ static int dax_radix_entry(struct address_space *mapping, pgoff_t index,
> > void *entry;
> >
> > WARN_ON_ONCE(pmd_entry && !dirty);
> > - __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
> > + if (dirty)
> > + __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
> >
> > spin_lock_irq(&mapping->tree_lock);
> >
> > --
> > 1.8.3.1
> >
> --
> Jan Kara <jack@suse.com>
> SUSE Labs, CR
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-04 15:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-04 14:02 [PATCH] dax: dirty inode only if required Dmitry Monakhov
2016-02-04 14:33 ` Jan Kara
2016-02-04 15:50 ` Ross Zwisler
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).