lkml.org 
[lkml]   [2020]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 11/11] afs: Fix dirty-region encoding on ppc32 with 64K pages
Date
David Howells <dhowells@redhat.com> wrote:

> +static inline unsigned int afs_page_dirty_resolution(void)
> +{
> + long shift = PAGE_SHIFT - (__AFS_PAGE_PRIV_SHIFT - 1);

This should be int, not long, in case we get an explicitly unsigned int number
included in the mix (say from thp_order() with THP support).

David

\
 
 \ /
  Last update: 2020-10-29 12:49    [W:0.068 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site