Message ID | 1591146001-27171-8-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: OpenSFS backport patches for May 29 2020 | expand |
diff --git a/fs/lustre/llite/rw26.c b/fs/lustre/llite/rw26.c index 7abf3fc..5e7aa6e 100644 --- a/fs/lustre/llite/rw26.c +++ b/fs/lustre/llite/rw26.c @@ -276,7 +276,7 @@ struct ll_dio_pages { * up to 22MB for 128kB kmalloc and up to 682MB for 4MB kmalloc. */ #define MAX_DIO_SIZE ((KMALLOC_MAX_SIZE / sizeof(struct brw_page) * PAGE_SIZE) & \ - ~(DT_MAX_BRW_SIZE - 1)) + ~((size_t)DT_MAX_BRW_SIZE - 1)) static ssize_t ll_direct_IO(struct kiocb *iocb, struct iov_iter *iter) {