File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2965,20 +2965,20 @@ static vm_fault_t fault_dirty_shared_page(struct vm_fault *vmf)
2965
2965
{
2966
2966
struct vm_area_struct * vma = vmf -> vma ;
2967
2967
struct address_space * mapping ;
2968
- struct page * page = vmf -> page ;
2968
+ struct folio * folio = page_folio ( vmf -> page ) ;
2969
2969
bool dirtied ;
2970
2970
bool page_mkwrite = vma -> vm_ops && vma -> vm_ops -> page_mkwrite ;
2971
2971
2972
- dirtied = set_page_dirty ( page );
2973
- VM_BUG_ON_PAGE ( PageAnon ( page ), page );
2972
+ dirtied = folio_mark_dirty ( folio );
2973
+ VM_BUG_ON_FOLIO ( folio_test_anon ( folio ), folio );
2974
2974
/*
2975
- * Take a local copy of the address_space - page .mapping may be zeroed
2976
- * by truncate after unlock_page (). The address_space itself remains
2977
- * pinned by vma->vm_file's reference. We rely on unlock_page ()'s
2975
+ * Take a local copy of the address_space - folio .mapping may be zeroed
2976
+ * by truncate after folio_unlock (). The address_space itself remains
2977
+ * pinned by vma->vm_file's reference. We rely on folio_unlock ()'s
2978
2978
* release semantics to prevent the compiler from undoing this copying.
2979
2979
*/
2980
- mapping = page_rmapping ( page );
2981
- unlock_page ( page );
2980
+ mapping = folio_raw_mapping ( folio );
2981
+ folio_unlock ( folio );
2982
2982
2983
2983
if (!page_mkwrite )
2984
2984
file_update_time (vma -> vm_file );
You can’t perform that action at this time.
0 commit comments