Refactor "do write back only MAP_SHARED pages"
* free_process_memory_range() always passes memobj to ihk_mc_pt_free_range() * clear_range_*() don't flush page in fileobj with MF_PRIVATE flag Fujitsu: POSTK_DEBUG_TEMP_FIX_87 Change-Id: I8d46d029b3fc51ca6f0e59d748a2fe93e324a374
This commit is contained in:
committed by
Dominique Martinet
parent
fb24dcea2e
commit
9cfc373538
@@ -35,6 +35,7 @@ enum {
|
||||
MF_ZEROOBJ = 0x20000, /* To identify pages of anonymous, on-demand paging ranges for rusage accounting */
|
||||
MF_SHM = 0x40000,
|
||||
MF_HUGETLBFS = 0x100000,
|
||||
MF_PRIVATE = 0x200000, /* To prevent flush in clear_range_* */
|
||||
};
|
||||
|
||||
#define MEMOBJ_READY 0
|
||||
@@ -139,7 +140,8 @@ static inline int memobj_is_removable(struct memobj *obj)
|
||||
return !!(obj->flags & MF_IS_REMOVABLE);
|
||||
}
|
||||
|
||||
int fileobj_create(int fd, struct memobj **objp, int *maxprotp, uintptr_t virt_addr);
|
||||
int fileobj_create(int fd, struct memobj **objp, int *maxprotp, int flags,
|
||||
uintptr_t virt_addr);
|
||||
struct shmid_ds;
|
||||
int shmobj_create(struct shmid_ds *ds, struct memobj **objp);
|
||||
int zeroobj_create(struct memobj **objp);
|
||||
|
||||
Reference in New Issue
Block a user