mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	ntfs3: use bdev_nr_bytes instead of open coding it
Use the proper helper to read the block device size. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211018101130.1838532-21-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									4fcd69798d
								
							
						
					
					
						commit
						d54f13a8e4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -921,7 +921,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
 | 
			
		|||
 | 
			
		||||
	/* Parse boot. */
 | 
			
		||||
	err = ntfs_init_from_boot(sb, rq ? queue_logical_block_size(rq) : 512,
 | 
			
		||||
				  bdev->bd_inode->i_size);
 | 
			
		||||
				  bdev_nr_bytes(bdev));
 | 
			
		||||
	if (err)
 | 
			
		||||
		goto out;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue