File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ int nilfs_ifile_delete_inode(struct inode *ifile, ino_t ino)
98
98
.pr_entry_nr = ino , .pr_entry_bh = NULL
99
99
};
100
100
struct nilfs_inode * raw_inode ;
101
- void * kaddr ;
101
+ size_t offset ;
102
102
int ret ;
103
103
104
104
ret = nilfs_palloc_prepare_free_entry (ifile , & req );
@@ -113,11 +113,11 @@ int nilfs_ifile_delete_inode(struct inode *ifile, ino_t ino)
113
113
return ret ;
114
114
}
115
115
116
- kaddr = kmap_local_page ( req .pr_entry_bh -> b_page );
117
- raw_inode = nilfs_palloc_block_get_entry ( ifile , req .pr_entry_nr ,
118
- req .pr_entry_bh , kaddr );
116
+ offset = nilfs_palloc_entry_offset ( ifile , req .pr_entry_nr ,
117
+ req .pr_entry_bh );
118
+ raw_inode = kmap_local_folio ( req .pr_entry_bh -> b_folio , offset );
119
119
raw_inode -> i_flags = 0 ;
120
- kunmap_local (kaddr );
120
+ kunmap_local (raw_inode );
121
121
122
122
mark_buffer_dirty (req .pr_entry_bh );
123
123
brelse (req .pr_entry_bh );
Original file line number Diff line number Diff line change 21
21
static inline struct nilfs_inode *
22
22
nilfs_ifile_map_inode (struct inode * ifile , ino_t ino , struct buffer_head * ibh )
23
23
{
24
- void * kaddr = kmap_local_page ( ibh -> b_page );
24
+ size_t __offset_in_folio = nilfs_palloc_entry_offset ( ifile , ino , ibh );
25
25
26
- return nilfs_palloc_block_get_entry ( ifile , ino , ibh , kaddr );
26
+ return kmap_local_folio ( ibh -> b_folio , __offset_in_folio );
27
27
}
28
28
29
29
static inline void nilfs_ifile_unmap_inode (struct nilfs_inode * raw_inode )
You can’t perform that action at this time.
0 commit comments