mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
s390/mm: implement set_memory_rox()
Provide the s390 specific native set_memory_rox() implementation to avoid
frequent set_memory_ro(); set_memory_x() call pairs.
This is the s390 variant of commit 60463628c9 ("x86/mm: Implement native
set_memory_rox()").
Reviewed-by: Alexander Gordeev <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
This commit is contained in:
1 parent
bac30ea9ef
commit
22e99fa564
1 file changed
+6
@@ -34,6 +34,12 @@ static inline int set_memory_x(unsigned long addr, int numpages)
|
||||
return __set_memory(addr, numpages, SET_MEMORY_X);
|
||||
}
|
||||
|
||||
#define set_memory_rox set_memory_rox
|
||||
static inline int set_memory_rox(unsigned long addr, int numpages)
|
||||
{
|
||||
return __set_memory(addr, numpages, SET_MEMORY_RO | SET_MEMORY_X);
|
||||
}
|
||||
|
||||
static inline int set_memory_4k(unsigned long addr, int numpages)
|
||||
{
|
||||
return __set_memory(addr, numpages, SET_MEMORY_4K);
|
||||
|
||||
Reference in new issue
Block a user