mirror of https://gitee.com/openkylin/linux.git
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: Harshad Shirwadkar <harshadshirwadkar@gmail.com> Link: https://lore.kernel.org/r/20201106035911.1942128-17-harshadshirwadkar@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
764b3fd31d
commit
a3114fe747
|
@ -761,7 +761,6 @@ static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
|
||||||
if (!daxdev_mapping_supported(vma, dax_dev))
|
if (!daxdev_mapping_supported(vma, dax_dev))
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
ext4_fc_start_update(inode);
|
|
||||||
file_accessed(file);
|
file_accessed(file);
|
||||||
if (IS_DAX(file_inode(file))) {
|
if (IS_DAX(file_inode(file))) {
|
||||||
vma->vm_ops = &ext4_dax_vm_ops;
|
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 {
|
} else {
|
||||||
vma->vm_ops = &ext4_file_vm_ops;
|
vma->vm_ops = &ext4_file_vm_ops;
|
||||||
}
|
}
|
||||||
ext4_fc_stop_update(inode);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue