File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -524,16 +524,12 @@ static int ecryptfs_write_end(struct file *file,
524
524
525
525
static sector_t ecryptfs_bmap (struct address_space * mapping , sector_t block )
526
526
{
527
- int rc = 0 ;
528
- struct inode * inode ;
529
- struct inode * lower_inode ;
530
-
531
- inode = (struct inode * )mapping -> host ;
532
- lower_inode = ecryptfs_inode_to_lower (inode );
533
- if (lower_inode -> i_mapping -> a_ops -> bmap )
534
- rc = lower_inode -> i_mapping -> a_ops -> bmap (lower_inode -> i_mapping ,
535
- block );
536
- return rc ;
527
+ struct inode * lower_inode = ecryptfs_inode_to_lower (mapping -> host );
528
+ int ret = bmap (lower_inode , & block );
529
+
530
+ if (ret )
531
+ return 0 ;
532
+ return block ;
537
533
}
538
534
539
535
const struct address_space_operations ecryptfs_aops = {
You can’t perform that action at this time.
0 commit comments