VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Ross Zwisler <ross.zwisler@linux.intel.com> 2018-07-29 17:00:22 -0400 committer: Theodore Ts'o <tytso@mit.edu> 2018-07-29 17:00:22 -0400 commit: 430657b6be896db57d974375cc499ca212c7f01d parent: cdbf8897cb09b7baf2b8a7e78051a35a872b01d5
Commit Summary:
ext4: handle layout changes to pinned DAX mappings
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/truncate.h b/fs/ext4/truncate.h
index 0cb13badf473..bcbe3668c1d4 100644
--- a/fs/ext4/truncate.h
+++ b/fs/ext4/truncate.h
@@ -11,6 +11,10 @@
  */
 static inline void ext4_truncate_failed_write(struct inode *inode)
 {
+	/*
+	 * We don't need to call ext4_break_layouts() because the blocks we
+	 * are truncating were never visible to userspace.
+	 */
 	down_write(&EXT4_I(inode)->i_mmap_sem);
 	truncate_inode_pages(inode->i_mapping, inode->i_size);
 	ext4_truncate(inode);