mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	bcachefs: Add pagecache_add lock to buffered IO path, fault path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
		
							parent
							
								
									6d01598ecd
								
							
						
					
					
						commit
						1b783a690d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -571,13 +571,13 @@ vm_fault_t bch2_page_mkwrite(struct vm_fault *vmf)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bch2_set_page_dirty(c, inode, page, &res, 0, len);
 | 
						bch2_set_page_dirty(c, inode, page, &res, 0, len);
 | 
				
			||||||
 | 
						bch2_page_reservation_put(c, inode, &res);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wait_for_stable_page(page);
 | 
						wait_for_stable_page(page);
 | 
				
			||||||
out:
 | 
					out:
 | 
				
			||||||
	bch2_pagecache_add_put(&inode->ei_pagecache_lock);
 | 
						bch2_pagecache_add_put(&inode->ei_pagecache_lock);
 | 
				
			||||||
	sb_end_pagefault(inode->v.i_sb);
 | 
						sb_end_pagefault(inode->v.i_sb);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bch2_page_reservation_put(c, inode, &res);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return ret;
 | 
						return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue