Commit a3114fe7 authored by Harshad Shirwadkar's avatar Harshad Shirwadkar Committed by Theodore Ts'o
Browse files

ext4: remove unnecessary fast commit calls from ext4_file_mmap



Remove unnecessary calls to ext4_fc_start_update() and
ext4_fc_stop_update() from ext4_file_mmap().

Signed-off-by: default avatarHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20201106035911.1942128-17-harshadshirwadkar@gmail.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 764b3fd3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -761,7 +761,6 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
	if (!daxdev_mapping_supported(vma, dax_dev))
		return -EOPNOTSUPP;

	ext4_fc_start_update(inode);
	file_accessed(file);
	if (IS_DAX(file_inode(file))) {
		vma->vm_ops = &ext4_dax_vm_ops;
@@ -769,7 +768,6 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
	} else {
		vma->vm_ops = &ext4_file_vm_ops;
	}
	ext4_fc_stop_update(inode);
	return 0;
}