mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net
Lots of overlapping changes, mostly trivial in nature. The mlxsw conflict was resolving using the example resolution at: https://github.com/jpirko/linux_mlxsw/blob/combined_queue/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
c1c8626fce
70 changed files with 539 additions and 217 deletions
12
ipc/shm.c
12
ipc/shm.c
|
|
@ -428,6 +428,17 @@ static int shm_split(struct vm_area_struct *vma, unsigned long addr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static unsigned long shm_pagesize(struct vm_area_struct *vma)
|
||||
{
|
||||
struct file *file = vma->vm_file;
|
||||
struct shm_file_data *sfd = shm_file_data(file);
|
||||
|
||||
if (sfd->vm_ops->pagesize)
|
||||
return sfd->vm_ops->pagesize(vma);
|
||||
|
||||
return PAGE_SIZE;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
|
||||
{
|
||||
|
|
@ -555,6 +566,7 @@ static const struct vm_operations_struct shm_vm_ops = {
|
|||
.close = shm_close, /* callback for when the vm-area is released */
|
||||
.fault = shm_fault,
|
||||
.split = shm_split,
|
||||
.pagesize = shm_pagesize,
|
||||
#if defined(CONFIG_NUMA)
|
||||
.set_policy = shm_set_policy,
|
||||
.get_policy = shm_get_policy,
|
||||
|
|
|
|||
Loading…
Reference in a new issue