diff options
author | Dominik Dingel <dingel@linux.vnet.ibm.com> | 2016-01-11 13:47:12 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-01-19 14:14:01 +0300 |
commit | a9d7ab97812cf2cf9fd7c980205ae35f58c52cf5 (patch) | |
tree | f49227f42f564a4d435ea5ae989e6f1b645c76cb /arch/s390/mm/pgtable.c | |
parent | a200dcb34693084e56496960d855afdeaaf9578f (diff) | |
download | linux-a9d7ab97812cf2cf9fd7c980205ae35f58c52cf5.tar.xz |
s390/mm: use TASK_MAX_SIZE where applicable
To improve readability we can use TASK_MAX_SIZE when we just check for the
upper limit. All places explicitly dealing with 3 vs 4 level pgtables
were left unchanged.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-By: Sascha Silbe <silbe@linux.vnet.ibm.com>
Diffstat (limited to 'arch/s390/mm/pgtable.c')
-rw-r--r-- | arch/s390/mm/pgtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index a809fa8e6f8b..5109827883ac 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c @@ -55,7 +55,7 @@ int crst_table_upgrade(struct mm_struct *mm, unsigned long limit) unsigned long entry; int flush; - BUG_ON(limit > (1UL << 53)); + BUG_ON(limit > TASK_MAX_SIZE); flush = 0; repeat: table = crst_table_alloc(mm); |