mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge 3.15-rc3 into staging-next
This commit is contained in:
commit
d35cc56ddf
249 changed files with 2312 additions and 1441 deletions
|
|
@ -232,9 +232,6 @@ static int kernfs_link_sibling(struct kernfs_node *kn)
|
|||
struct rb_node **node = &kn->parent->dir.children.rb_node;
|
||||
struct rb_node *parent = NULL;
|
||||
|
||||
if (kernfs_type(kn) == KERNFS_DIR)
|
||||
kn->parent->dir.subdirs++;
|
||||
|
||||
while (*node) {
|
||||
struct kernfs_node *pos;
|
||||
int result;
|
||||
|
|
@ -249,9 +246,15 @@ static int kernfs_link_sibling(struct kernfs_node *kn)
|
|||
else
|
||||
return -EEXIST;
|
||||
}
|
||||
|
||||
/* add new node and rebalance the tree */
|
||||
rb_link_node(&kn->rb, parent, node);
|
||||
rb_insert_color(&kn->rb, &kn->parent->dir.children);
|
||||
|
||||
/* successfully added, account subdir number */
|
||||
if (kernfs_type(kn) == KERNFS_DIR)
|
||||
kn->parent->dir.subdirs++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -485,6 +485,8 @@ static int kernfs_fop_mmap(struct file *file, struct vm_area_struct *vma)
|
|||
|
||||
ops = kernfs_ops(of->kn);
|
||||
rc = ops->mmap(of, vma);
|
||||
if (rc)
|
||||
goto out_put;
|
||||
|
||||
/*
|
||||
* PowerPC's pci_mmap of legacy_mem uses shmem_zero_setup()
|
||||
|
|
|
|||
Loading…
Reference in a new issue