mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	ocfs: stop using do_sync_mapping_range
do_sync_mapping_range(..., SYNC_FILE_RANGE_WRITE) is a very awkward way to perform a filemap_fdatawrite_range. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									1e431f5ce7
								
							
						
					
					
						commit
						2cfd30adf6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -7190,8 +7190,8 @@ int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, | |||
| 	 * wait on them - the truncate_inode_pages() call later will | ||||
| 	 * do that for us. | ||||
| 	 */ | ||||
| 	ret = do_sync_mapping_range(inode->i_mapping, range_start, | ||||
| 				    range_end - 1, SYNC_FILE_RANGE_WRITE); | ||||
| 	ret = filemap_fdatawrite_range(inode->i_mapping, range_start, | ||||
| 				       range_end - 1); | ||||
| 	if (ret) | ||||
| 		mlog_errno(ret); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christoph Hellwig
						Christoph Hellwig