fix REQ-37: remap_one_page: remove to check page size
This commit is contained in:
@@ -216,12 +216,13 @@ static inline void pte_make_null(pte_t *ptep, size_t pgsize)
|
||||
}
|
||||
|
||||
static inline void pte_make_fileoff(off_t off,
|
||||
enum ihk_mc_pt_attribute ptattr, size_t pgsize, pte_t *ptep)
|
||||
enum ihk_mc_pt_attribute ptattr, pte_t *ptep)
|
||||
{
|
||||
uint64_t attr;
|
||||
|
||||
attr = ptattr & ~PAGE_MASK;
|
||||
|
||||
#if 0
|
||||
switch (pgsize) {
|
||||
case PTL1_SIZE: attr |= PFL1_FILEOFF; break;
|
||||
case PTL2_SIZE: attr |= PFL2_FILEOFF | PFL2_SIZE; break;
|
||||
@@ -234,6 +235,9 @@ static inline void pte_make_fileoff(off_t off,
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
#else
|
||||
attr |= PFL1_FILEOFF;
|
||||
#endif
|
||||
*ptep = (off & PAGE_MASK) | attr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user