diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2016-02-06 00:36:55 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-02-06 03:10:40 +0100 |
commit | d2b2a28e640489df64cc50123f4c3c47d9ad7d13 (patch) | |
tree | b63203e2e6f2e1737911ff7823618398f1869ab3 /fs/dax.c | |
parent | thp: make deferred_split_scan() work again (diff) | |
download | linux-d2b2a28e640489df64cc50123f4c3c47d9ad7d13.tar.xz linux-d2b2a28e640489df64cc50123f4c3c47d9ad7d13.zip |
dax: dirty inode only if required
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/dax.c')
-rw-r--r-- | fs/dax.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |