.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2014 IBM Corp. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version |
---|
7 | | - * 2 of the License, or (at your option) any later version. |
---|
8 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #include <linux/module.h> |
---|
.. | .. |
---|
356 | 352 | void cxl_context_mm_count_get(struct cxl_context *ctx) |
---|
357 | 353 | { |
---|
358 | 354 | if (ctx->mm) |
---|
359 | | - atomic_inc(&ctx->mm->mm_count); |
---|
| 355 | + mmgrab(ctx->mm); |
---|
360 | 356 | } |
---|
361 | 357 | |
---|
362 | 358 | void cxl_context_mm_count_put(struct cxl_context *ctx) |
---|