Message ID | 87k2mkr2ud.fsf@openvz.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 >
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 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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);
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> --- fs/dax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)