提交 db2472b0 编写于 作者: Y Yang Sheng 提交者: Greg Kroah-Hartman

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: NYang Sheng <yang.sheng@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1118
Reviewed-on: http://review.whamcloud.com/18683Reviewed-by: NAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: NNiu Yawei <yawei.niu@intel.com>
Reviewed-by: NOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: NJames Simmons <jsimmons@infradead.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5965de81
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册