diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/memory.c b/mm/memory.c index a728bed16c20..cae514e7dcfc 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -3891,9 +3891,9 @@ static int handle_pte_fault(struct vm_fault *vmf) | |||
3891 | /* | 3891 | /* |
3892 | * some architectures can have larger ptes than wordsize, | 3892 | * some architectures can have larger ptes than wordsize, |
3893 | * e.g.ppc44x-defconfig has CONFIG_PTE_64BIT=y and | 3893 | * e.g.ppc44x-defconfig has CONFIG_PTE_64BIT=y and |
3894 | * CONFIG_32BIT=y, so READ_ONCE or ACCESS_ONCE cannot guarantee | 3894 | * CONFIG_32BIT=y, so READ_ONCE cannot guarantee atomic |
3895 | * atomic accesses. The code below just needs a consistent | 3895 | * accesses. The code below just needs a consistent view |
3896 | * view for the ifs and we later double check anyway with the | 3896 | * for the ifs and we later double check anyway with the |
3897 | * ptl lock held. So here a barrier will do. | 3897 | * ptl lock held. So here a barrier will do. |
3898 | */ | 3898 | */ |
3899 | barrier(); | 3899 | barrier(); |