forked from Minki/linux
staging: lustre: llite: Invoke file_update_time in page_mkwrite
Only update file times if page_mkwrite is not set. So we need call file_update_time by ourselves. Signed-off-by: Yang Sheng <yang.sheng@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1118 Reviewed-on: http://review.whamcloud.com/18683 Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Niu Yawei <yawei.niu@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5965de814e
commit
db2472b0b6
@ -369,6 +369,7 @@ static int ll_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
bool retry;
|
||||
int result;
|
||||
|
||||
file_update_time(vma->vm_file);
|
||||
do {
|
||||
retry = false;
|
||||
result = ll_page_mkwrite0(vma, vmf->page, &retry);
|
||||
|
Loading…
Reference in New Issue
Block a user