]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- up to 4.0.0, builds, untested
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 13 Apr 2015 14:13:42 +0000 (16:13 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 13 Apr 2015 14:13:42 +0000 (16:13 +0200)
kernel-aufs3.patch
kernel-btrfs_deadlock_mount.patch [deleted file]
kernel-imq.patch
kernel-multiarch.config
kernel.spec

index e9f36a22b68161e690224ee676ac17aa7223e33f..f8dd2ec550db15871fb27f278800b9658a5631a8 100644 (file)
@@ -1,19 +1,19 @@
-aufs3.19 kbuild patch
+aufs3.x-rcN kbuild patch
 
 diff --git a/fs/Kconfig b/fs/Kconfig
-index 664991a..1481093 100644
+index ec35851..a059d62 100644
 --- a/fs/Kconfig
 +++ b/fs/Kconfig
-@@ -210,6 +210,7 @@ source "fs/ufs/Kconfig"
+@@ -218,6 +218,7 @@ source "fs/sysv/Kconfig"
+ source "fs/ufs/Kconfig"
  source "fs/exofs/Kconfig"
  source "fs/f2fs/Kconfig"
- source "fs/efivarfs/Kconfig"
 +source "fs/aufs/Kconfig"
  
  endif # MISC_FILESYSTEMS
  
 diff --git a/fs/Makefile b/fs/Makefile
-index bedff48..9e7c0b7 100644
+index a88ac48..162500e 100644
 --- a/fs/Makefile
 +++ b/fs/Makefile
 @@ -126,3 +126,4 @@ obj-y                              += exofs/ # Multiple modules
@@ -22,10 +22,10 @@ index bedff48..9e7c0b7 100644
  obj-$(CONFIG_EFIVAR_FS)               += efivarfs/
 +obj-$(CONFIG_AUFS_FS)           += aufs/
 diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
-index 00b10002..f4a389c 100644
+index 68ceb97..0352fa4 100644
 --- a/include/uapi/linux/Kbuild
 +++ b/include/uapi/linux/Kbuild
-@@ -57,6 +57,7 @@ header-y += atmsvc.h
+@@ -58,6 +58,7 @@ header-y += atmsvc.h
  header-y += atm_tcp.h
  header-y += atm_zatm.h
  header-y += audit.h
@@ -33,13 +33,13 @@ index 00b10002..f4a389c 100644
  header-y += auto_fs4.h
  header-y += auto_fs.h
  header-y += auxvec.h
-aufs3.19 base patch
+aufs3.x-rcN base patch
 
 diff --git a/MAINTAINERS b/MAINTAINERS
-index d66a97d..1c113a4 100644
+index 1de6afa..082a271 100644
 --- a/MAINTAINERS
 +++ b/MAINTAINERS
-@@ -1833,6 +1833,20 @@ F:      include/linux/audit.h
+@@ -1865,6 +1865,20 @@ F:      include/linux/audit.h
  F:    include/uapi/linux/audit.h
  F:    kernel/audit*
  
@@ -61,10 +61,10 @@ index d66a97d..1c113a4 100644
  M:    Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
  W:    http://miguelojeda.es/auxdisplay.htm
 diff --git a/drivers/block/loop.c b/drivers/block/loop.c
-index 6cb1beb..30efd68 100644
+index d1f168b..a0da519 100644
 --- a/drivers/block/loop.c
 +++ b/drivers/block/loop.c
-@@ -692,6 +692,24 @@ static inline int is_loop_device(struct file *file)
+@@ -592,6 +592,24 @@ static inline int is_loop_device(struct file *file)
        return i && S_ISBLK(i->i_mode) && MAJOR(i->i_rdev) == LOOP_MAJOR;
  }
  
@@ -90,10 +90,10 @@ index 6cb1beb..30efd68 100644
  
  static ssize_t loop_attr_show(struct device *dev, char *page,
 diff --git a/fs/dcache.c b/fs/dcache.c
-index e368d4f..eaed72c 100644
+index c71e373..b93a9f2 100644
 --- a/fs/dcache.c
 +++ b/fs/dcache.c
-@@ -1019,7 +1019,7 @@ enum d_walk_ret {
+@@ -1130,7 +1130,7 @@ enum d_walk_ret {
   *
   * The @enter() and @finish() callbacks are called with d_lock held.
   */
@@ -102,24 +102,11 @@ index e368d4f..eaed72c 100644
                   enum d_walk_ret (*enter)(void *, struct dentry *),
                   void (*finish)(void *))
  {
-diff --git a/fs/inode.c b/fs/inode.c
-index aa149e7..98d87de 100644
---- a/fs/inode.c
-+++ b/fs/inode.c
-@@ -1499,7 +1499,7 @@ static int relatime_need_update(struct vfsmount *mnt, struct inode *inode,
-  * This does the actual work of updating an inodes time or version.  Must have
-  * had called mnt_want_write() before calling this.
-  */
--static int update_time(struct inode *inode, struct timespec *time, int flags)
-+int update_time(struct inode *inode, struct timespec *time, int flags)
- {
-       if (inode->i_op->update_time)
-               return inode->i_op->update_time(inode, time, flags);
 diff --git a/fs/splice.c b/fs/splice.c
-index 75c6058..619359a 100644
+index 7968da9..beb9993 100644
 --- a/fs/splice.c
 +++ b/fs/splice.c
-@@ -1114,8 +1114,8 @@ EXPORT_SYMBOL(generic_splice_sendpage);
+@@ -1099,8 +1099,8 @@ EXPORT_SYMBOL(generic_splice_sendpage);
  /*
   * Attempt to initiate a splice from pipe to file.
   */
@@ -130,7 +117,7 @@ index 75c6058..619359a 100644
  {
        ssize_t (*splice_write)(struct pipe_inode_info *, struct file *,
                                loff_t *, size_t, unsigned int);
-@@ -1131,9 +1131,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
+@@ -1116,9 +1116,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
  /*
   * Attempt to initiate a splice from a file to a pipe.
   */
@@ -143,18 +130,6 @@ index 75c6058..619359a 100644
  {
        ssize_t (*splice_read)(struct file *, loff_t *,
                               struct pipe_inode_info *, size_t, unsigned int);
-diff --git a/include/linux/fs.h b/include/linux/fs.h
-index 42efe13..f634198 100644
---- a/include/linux/fs.h
-+++ b/include/linux/fs.h
-@@ -2690,6 +2690,7 @@ extern int inode_change_ok(const struct inode *, struct iattr *);
- extern int inode_newsize_ok(const struct inode *, loff_t offset);
- extern void setattr_copy(struct inode *inode, const struct iattr *attr);
-+extern int update_time(struct inode *, struct timespec *, int);
- extern int file_update_time(struct file *file);
- extern int generic_show_options(struct seq_file *m, struct dentry *root);
 diff --git a/include/linux/splice.h b/include/linux/splice.h
 index da2751d..2e0fca6 100644
 --- a/include/linux/splice.h
@@ -170,7 +145,7 @@ index da2751d..2e0fca6 100644
 +                       struct pipe_inode_info *pipe, size_t len,
 +                       unsigned int flags);
  #endif
-aufs3.19 mmap patch
+aufs3.x-rcN mmap patch
 
 diff --git a/fs/buffer.c b/fs/buffer.c
 index 20805db..363569f 100644
@@ -215,10 +190,10 @@ index d4a3574..1397181 100644
                ino = inode->i_ino;
        }
 diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
-index 246eae8..dfd0875 100644
+index 6dee68d..9afa35d 100644
 --- a/fs/proc/task_mmu.c
 +++ b/fs/proc/task_mmu.c
-@@ -276,7 +276,10 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
+@@ -279,7 +279,10 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
        const char *name = NULL;
  
        if (file) {
@@ -230,15 +205,15 @@ index 246eae8..dfd0875 100644
                dev = inode->i_sb->s_dev;
                ino = inode->i_ino;
                pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT;
-@@ -1475,7 +1478,7 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
+@@ -1479,7 +1482,7 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
        struct proc_maps_private *proc_priv = &numa_priv->proc_maps;
        struct vm_area_struct *vma = v;
        struct numa_maps *md = &numa_priv->md;
 -      struct file *file = vma->vm_file;
 +      struct file *file = vma_pr_or_file(vma);
        struct mm_struct *mm = vma->vm_mm;
-       struct mm_walk walk = {};
-       struct mempolicy *pol;
+       struct mm_walk walk = {
+               .hugetlb_entry = gather_hugetlb_stats,
 diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c
 index 599ec2e..de6cd6e 100644
 --- a/fs/proc/task_nommu.c
@@ -256,10 +231,10 @@ index 599ec2e..de6cd6e 100644
                ino = inode->i_ino;
                pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT;
 diff --git a/include/linux/mm.h b/include/linux/mm.h
-index dd5ea30..445d798 100644
+index 47a9392..60bc29c 100644
 --- a/include/linux/mm.h
 +++ b/include/linux/mm.h
-@@ -1224,6 +1224,28 @@ static inline int fixup_user_fault(struct task_struct *tsk,
+@@ -1254,6 +1254,28 @@ static inline int fixup_user_fault(struct task_struct *tsk,
  }
  #endif
  
@@ -289,10 +264,10 @@ index dd5ea30..445d798 100644
  extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
                void *buf, int len, int write);
 diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
-index 6d34aa2..f13dd51 100644
+index 199a03a..ed38ea3 100644
 --- a/include/linux/mm_types.h
 +++ b/include/linux/mm_types.h
-@@ -233,6 +233,7 @@ struct vm_region {
+@@ -241,6 +241,7 @@ struct vm_region {
        unsigned long   vm_top;         /* region allocated to here */
        unsigned long   vm_pgoff;       /* the offset in vm_file corresponding to vm_start */
        struct file     *vm_file;       /* the backing file or NULL */
@@ -300,7 +275,7 @@ index 6d34aa2..f13dd51 100644
  
        int             vm_usage;       /* region usage count (access under nommu_region_sem) */
        bool            vm_icache_flushed : 1; /* true if the icache has been flushed for
-@@ -301,6 +302,7 @@ struct vm_area_struct {
+@@ -305,6 +306,7 @@ struct vm_area_struct {
        unsigned long vm_pgoff;         /* Offset (within vm_file) in PAGE_SIZE
                                           units, *not* PAGE_CACHE_SIZE */
        struct file * vm_file;          /* File we map to (can be NULL). */
@@ -309,7 +284,7 @@ index 6d34aa2..f13dd51 100644
  
  #ifndef CONFIG_MMU
 diff --git a/kernel/fork.c b/kernel/fork.c
-index 4dc2dda..5984c61 100644
+index cf65139..f28a048 100644
 --- a/kernel/fork.c
 +++ b/kernel/fork.c
 @@ -430,7 +430,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
@@ -322,23 +297,23 @@ index 4dc2dda..5984c61 100644
                                atomic_dec(&inode->i_writecount);
                        i_mmap_lock_write(mapping);
 diff --git a/mm/Makefile b/mm/Makefile
-index 4bf586e..59bd276 100644
+index 15dbe99..88e25b5 100644
 --- a/mm/Makefile
 +++ b/mm/Makefile
-@@ -18,7 +18,7 @@ obj-y                        := filemap.o mempool.o oom_kill.o \
+@@ -21,7 +21,7 @@ obj-y                        := filemap.o mempool.o oom_kill.o \
                           mm_init.o mmu_context.o percpu.o slab_common.o \
                           compaction.o vmacache.o \
                           interval_tree.o list_lru.o workingset.o \
--                         iov_iter.o debug.o $(mmu-y)
-+                         iov_iter.o prfile.o debug.o $(mmu-y)
+-                         debug.o $(mmu-y)
++                         prfile.o debug.o $(mmu-y)
  
  obj-y += init-mm.o
  
 diff --git a/mm/filemap.c b/mm/filemap.c
-index 673e458..a623932 100644
+index ad72420..8885258 100644
 --- a/mm/filemap.c
 +++ b/mm/filemap.c
-@@ -2063,7 +2063,7 @@ int filemap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
+@@ -2064,7 +2064,7 @@ int filemap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
        int ret = VM_FAULT_LOCKED;
  
        sb_start_pagefault(inode->i_sb);
@@ -347,46 +322,11 @@ index 673e458..a623932 100644
        lock_page(page);
        if (page->mapping != inode->i_mapping) {
                unlock_page(page);
-diff --git a/mm/fremap.c b/mm/fremap.c
-index 2805d71..1b011b0 100644
---- a/mm/fremap.c
-+++ b/mm/fremap.c
-@@ -224,16 +224,28 @@ get_write_lock:
-                */
-               if (mapping_cap_account_dirty(mapping)) {
-                       unsigned long addr;
--                      struct file *file = get_file(vma->vm_file);
-+                      struct file *file = vma->vm_file,
-+                              *prfile = vma->vm_prfile;
-+
-                       /* mmap_region may free vma; grab the info now */
-                       vm_flags = vma->vm_flags;
-+                      vma_get_file(vma);
-                       addr = mmap_region(file, start, size, vm_flags, pgoff);
--                      fput(file);
-+                      vma_fput(vma);
-                       if (IS_ERR_VALUE(addr)) {
-                               err = addr;
-                       } else {
-                               BUG_ON(addr != start);
-+                              if (prfile) {
-+                                      struct vm_area_struct *new_vma;
-+
-+                                      new_vma = find_vma(mm, addr);
-+                                      if (!new_vma->vm_prfile)
-+                                              new_vma->vm_prfile = prfile;
-+                                      if (new_vma != vma)
-+                                              get_file(prfile);
-+                              }
-                               err = 0;
-                       }
-                       goto out_freed;
 diff --git a/mm/madvise.c b/mm/madvise.c
-index a271adc..29a932f 100644
+index d551475..1ebf71b 100644
 --- a/mm/madvise.c
 +++ b/mm/madvise.c
-@@ -324,12 +324,12 @@ static long madvise_remove(struct vm_area_struct *vma,
+@@ -320,12 +320,12 @@ static long madvise_remove(struct vm_area_struct *vma,
         * vma's reference to the file) can go away as soon as we drop
         * mmap_sem.
         */
@@ -402,23 +342,23 @@ index a271adc..29a932f 100644
        return error;
  }
 diff --git a/mm/memory.c b/mm/memory.c
-index 2c3536c..444bb1d 100644
+index 97839f5..5e5d491 100644
 --- a/mm/memory.c
 +++ b/mm/memory.c
-@@ -2157,7 +2157,7 @@ reuse:
+@@ -2132,7 +2132,7 @@ reuse:
+                       }
  
-                       /* file_update_time outside page_lock */
-                       if (vma->vm_file)
+                       if (!page_mkwrite)
 -                              file_update_time(vma->vm_file);
 +                              vma_file_update_time(vma);
                }
-               put_page(dirty_page);
-               if (page_mkwrite) {
+               return ret;
 diff --git a/mm/mmap.c b/mm/mmap.c
-index 7f684d5..ffa1b91 100644
+index 9ec50a3..4a6a641 100644
 --- a/mm/mmap.c
 +++ b/mm/mmap.c
-@@ -277,7 +277,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
+@@ -274,7 +274,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
        if (vma->vm_ops && vma->vm_ops->close)
                vma->vm_ops->close(vma);
        if (vma->vm_file)
@@ -427,7 +367,7 @@ index 7f684d5..ffa1b91 100644
        mpol_put(vma_policy(vma));
        kmem_cache_free(vm_area_cachep, vma);
        return next;
-@@ -897,7 +897,7 @@ again:                     remove_next = 1 + (end > next->vm_end);
+@@ -886,7 +886,7 @@ again:                     remove_next = 1 + (end > next->vm_end);
        if (remove_next) {
                if (file) {
                        uprobe_munmap(next, next->vm_start, next->vm_end);
@@ -436,7 +376,7 @@ index 7f684d5..ffa1b91 100644
                }
                if (next->anon_vma)
                        anon_vma_merge(vma, next);
-@@ -1682,8 +1682,8 @@ out:
+@@ -1671,8 +1671,8 @@ out:
        return addr;
  
  unmap_and_free_vma:
@@ -446,7 +386,7 @@ index 7f684d5..ffa1b91 100644
  
        /* Undo any partial mapping done by a device driver. */
        unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end);
-@@ -2484,7 +2484,7 @@ static int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2473,7 +2473,7 @@ static int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
                goto out_free_mpol;
  
        if (new->vm_file)
@@ -455,7 +395,7 @@ index 7f684d5..ffa1b91 100644
  
        if (new->vm_ops && new->vm_ops->open)
                new->vm_ops->open(new);
-@@ -2503,7 +2503,7 @@ static int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2492,7 +2492,7 @@ static int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
        if (new->vm_ops && new->vm_ops->close)
                new->vm_ops->close(new);
        if (new->vm_file)
@@ -464,7 +404,28 @@ index 7f684d5..ffa1b91 100644
        unlink_anon_vmas(new);
   out_free_mpol:
        mpol_put(vma_policy(new));
-@@ -2895,7 +2895,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
+@@ -2635,7 +2635,6 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
+       struct vm_area_struct *vma;
+       unsigned long populate = 0;
+       unsigned long ret = -EINVAL;
+-      struct file *file;
+       pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. "
+                       "See Documentation/vm/remap_file_pages.txt.\n",
+@@ -2679,10 +2678,10 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
+               munlock_vma_pages_range(vma, start, start + size);
+       }
+-      file = get_file(vma->vm_file);
++      vma_get_file(vma);
+       ret = do_mmap_pgoff(vma->vm_file, start, size,
+                       prot, flags, pgoff, &populate);
+-      fput(file);
++      vma_fput(vma);
+ out:
+       up_write(&mm->mmap_sem);
+       if (populate)
+@@ -2950,7 +2949,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
                        if (anon_vma_clone(new_vma, vma))
                                goto out_free_mempol;
                        if (new_vma->vm_file)
@@ -474,30 +435,27 @@ index 7f684d5..ffa1b91 100644
                                new_vma->vm_ops->open(new_vma);
                        vma_link(mm, new_vma, prev, rb_link, rb_parent);
 diff --git a/mm/msync.c b/mm/msync.c
-index 992a167..ce1915b 100644
+index bb04d53..5c24c54 100644
 --- a/mm/msync.c
 +++ b/mm/msync.c
-@@ -84,13 +84,13 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags)
+@@ -84,10 +84,10 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags)
                start = vma->vm_end;
                if ((flags & MS_SYNC) && file &&
                                (vma->vm_flags & VM_SHARED)) {
 -                      get_file(file);
 +                      vma_get_file(vma);
                        up_read(&mm->mmap_sem);
-                       if (vma->vm_flags & VM_NONLINEAR)
-                               error = vfs_fsync(file, 1);
-                       else
-                               error = vfs_fsync_range(file, fstart, fend, 1);
+                       error = vfs_fsync_range(file, fstart, fend, 1);
 -                      fput(file);
 +                      vma_fput(vma);
                        if (error || start >= end)
                                goto out;
                        down_read(&mm->mmap_sem);
 diff --git a/mm/nommu.c b/mm/nommu.c
-index 28bd8c4..3c0ace2 100644
+index 3fba2dc..870ce96 100644
 --- a/mm/nommu.c
 +++ b/mm/nommu.c
-@@ -659,7 +659,7 @@ static void __put_nommu_region(struct vm_region *region)
+@@ -693,7 +693,7 @@ static void __put_nommu_region(struct vm_region *region)
                up_write(&nommu_region_sem);
  
                if (region->vm_file)
@@ -506,7 +464,7 @@ index 28bd8c4..3c0ace2 100644
  
                /* IO memory and memory shared directly out of the pagecache
                 * from ramfs/tmpfs mustn't be released here */
-@@ -824,7 +824,7 @@ static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)
+@@ -858,7 +858,7 @@ static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)
        if (vma->vm_ops && vma->vm_ops->close)
                vma->vm_ops->close(vma);
        if (vma->vm_file)
@@ -515,7 +473,7 @@ index 28bd8c4..3c0ace2 100644
        put_nommu_region(vma->vm_region);
        kmem_cache_free(vm_area_cachep, vma);
  }
-@@ -1375,7 +1375,7 @@ unsigned long do_mmap_pgoff(struct file *file,
+@@ -1398,7 +1398,7 @@ unsigned long do_mmap_pgoff(struct file *file,
                                        goto error_just_free;
                                }
                        }
@@ -524,7 +482,7 @@ index 28bd8c4..3c0ace2 100644
                        kmem_cache_free(vm_region_jar, region);
                        region = pregion;
                        result = start;
-@@ -1451,10 +1451,10 @@ error_just_free:
+@@ -1474,10 +1474,10 @@ error_just_free:
        up_write(&nommu_region_sem);
  error:
        if (region->vm_file)
@@ -539,7 +497,7 @@ index 28bd8c4..3c0ace2 100644
        return ret;
 diff --git a/mm/prfile.c b/mm/prfile.c
 new file mode 100644
-index 0000000..fc708d2
+index 0000000..6c145eb
 --- /dev/null
 +++ b/mm/prfile.c
 @@ -0,0 +1,86 @@
@@ -565,7 +523,7 @@ index 0000000..fc708d2
 +#ifdef PRFILE_TRACE
 +      if (pr)
 +              pr_info("%s:%d: %s, %p\n", func, line, func2,
-+                      f ? (char *)f->f_dentry->d_name.name : "(null)");
++                      f ? (char *)f->f_path.dentry->d_name.name : "(null)");
 +#endif
 +}
 +
@@ -629,13 +587,13 @@ index 0000000..fc708d2
 +              fput(pr);
 +}
 +#endif /* CONFIG_MMU */
-aufs3.19 standalone patch
+aufs3.x-rcN standalone patch
 
 diff --git a/fs/dcache.c b/fs/dcache.c
-index eaed72c..3b4386e 100644
+index b93a9f2..5a010ee 100644
 --- a/fs/dcache.c
 +++ b/fs/dcache.c
-@@ -1124,6 +1124,7 @@ rename_retry:
+@@ -1235,6 +1235,7 @@ rename_retry:
        seq = 1;
        goto again;
  }
@@ -644,10 +602,10 @@ index eaed72c..3b4386e 100644
  /*
   * Search for at least 1 mount point in the dentry's subdirs.
 diff --git a/fs/inode.c b/fs/inode.c
-index 98d87de..084d84f 100644
+index f00b16f..eb7b8b5 100644
 --- a/fs/inode.c
 +++ b/fs/inode.c
-@@ -57,6 +57,7 @@ static struct hlist_head *inode_hashtable __read_mostly;
+@@ -58,6 +58,7 @@ static struct hlist_head *inode_hashtable __read_mostly;
  static __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_hash_lock);
  
  __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock);
@@ -655,19 +613,11 @@ index 98d87de..084d84f 100644
  
  /*
   * Empty aops. Can be used for the cases where the user does not
-@@ -1515,6 +1516,7 @@ int update_time(struct inode *inode, struct timespec *time, int flags)
-       mark_inode_dirty_sync(inode);
-       return 0;
- }
-+EXPORT_SYMBOL(update_time);
- /**
-  *    touch_atime     -       update the access time
 diff --git a/fs/namespace.c b/fs/namespace.c
-index cd1e968..a99a3a7 100644
+index 82ef140..a3aa4b9 100644
 --- a/fs/namespace.c
 +++ b/fs/namespace.c
-@@ -454,6 +454,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
+@@ -463,6 +463,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
        mnt_dec_writers(real_mount(mnt));
        preempt_enable();
  }
@@ -675,7 +625,7 @@ index cd1e968..a99a3a7 100644
  
  /**
   * mnt_drop_write - give up write access to a mount
-@@ -1728,6 +1729,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
+@@ -1718,6 +1719,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
        }
        return 0;
  }
@@ -756,7 +706,7 @@ index 92e48c7..d2c4b68 100644
  static int fsnotify_mark_destroy(void *ignored)
  {
 diff --git a/fs/open.c b/fs/open.c
-index 813be03..328f0d6 100644
+index 33f9cbf..2c8bd72 100644
 --- a/fs/open.c
 +++ b/fs/open.c
 @@ -62,6 +62,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
@@ -768,10 +718,10 @@ index 813be03..328f0d6 100644
  long vfs_truncate(struct path *path, loff_t length)
  {
 diff --git a/fs/splice.c b/fs/splice.c
-index 619359a..c14f60e 100644
+index beb9993..813275a 100644
 --- a/fs/splice.c
 +++ b/fs/splice.c
-@@ -1127,6 +1127,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
+@@ -1112,6 +1112,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
  
        return splice_write(pipe, out, ppos, len, flags);
  }
@@ -779,7 +729,7 @@ index 619359a..c14f60e 100644
  
  /*
   * Attempt to initiate a splice from a file to a pipe.
-@@ -1153,6 +1154,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
+@@ -1138,6 +1139,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
  
        return splice_read(in, ppos, pipe, len, flags);
  }
@@ -800,10 +750,10 @@ index 4ef6985..6bb6303 100644
  /* Compare an extended attribute value with the given value */
  int vfs_xattr_cmp(struct dentry *dentry, const char *xattr_name,
 diff --git a/security/commoncap.c b/security/commoncap.c
-index 2915d85..58382dd 100644
+index f66713b..fd4c4b8 100644
 --- a/security/commoncap.c
 +++ b/security/commoncap.c
-@@ -979,9 +979,11 @@ int cap_mmap_addr(unsigned long addr)
+@@ -975,9 +975,11 @@ int cap_mmap_addr(unsigned long addr)
        }
        return ret;
  }
@@ -836,10 +786,10 @@ index 188c1d2..426d9af 100644
  int devcgroup_inode_mknod(int mode, dev_t dev)
  {
 diff --git a/security/security.c b/security/security.c
-index 18b35c6..12c67af 100644
+index e81d5bb..0b7b840 100644
 --- a/security/security.c
 +++ b/security/security.c
-@@ -407,6 +407,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
+@@ -430,6 +430,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
                return 0;
        return security_ops->path_rmdir(dir, dentry);
  }
@@ -847,7 +797,7 @@ index 18b35c6..12c67af 100644
  
  int security_path_unlink(struct path *dir, struct dentry *dentry)
  {
-@@ -423,6 +424,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
+@@ -446,6 +447,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
                return 0;
        return security_ops->path_symlink(dir, dentry, old_name);
  }
@@ -855,7 +805,7 @@ index 18b35c6..12c67af 100644
  
  int security_path_link(struct dentry *old_dentry, struct path *new_dir,
                       struct dentry *new_dentry)
-@@ -431,6 +433,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
+@@ -454,6 +456,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
                return 0;
        return security_ops->path_link(old_dentry, new_dir, new_dentry);
  }
@@ -863,7 +813,7 @@ index 18b35c6..12c67af 100644
  
  int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
                         struct path *new_dir, struct dentry *new_dentry,
-@@ -458,6 +461,7 @@ int security_path_truncate(struct path *path)
+@@ -481,6 +484,7 @@ int security_path_truncate(struct path *path)
                return 0;
        return security_ops->path_truncate(path);
  }
@@ -871,7 +821,7 @@ index 18b35c6..12c67af 100644
  
  int security_path_chmod(struct path *path, umode_t mode)
  {
-@@ -465,6 +469,7 @@ int security_path_chmod(struct path *path, umode_t mode)
+@@ -488,6 +492,7 @@ int security_path_chmod(struct path *path, umode_t mode)
                return 0;
        return security_ops->path_chmod(path, mode);
  }
@@ -879,7 +829,7 @@ index 18b35c6..12c67af 100644
  
  int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
  {
-@@ -472,6 +477,7 @@ int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
+@@ -495,6 +500,7 @@ int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
                return 0;
        return security_ops->path_chown(path, uid, gid);
  }
@@ -887,7 +837,7 @@ index 18b35c6..12c67af 100644
  
  int security_path_chroot(struct path *path)
  {
-@@ -557,6 +563,7 @@ int security_inode_readlink(struct dentry *dentry)
+@@ -580,6 +586,7 @@ int security_inode_readlink(struct dentry *dentry)
                return 0;
        return security_ops->inode_readlink(dentry);
  }
@@ -895,7 +845,7 @@ index 18b35c6..12c67af 100644
  
  int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
  {
-@@ -571,6 +578,7 @@ int security_inode_permission(struct inode *inode, int mask)
+@@ -594,6 +601,7 @@ int security_inode_permission(struct inode *inode, int mask)
                return 0;
        return security_ops->inode_permission(inode, mask);
  }
@@ -903,7 +853,7 @@ index 18b35c6..12c67af 100644
  
  int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
  {
-@@ -693,6 +701,7 @@ int security_file_permission(struct file *file, int mask)
+@@ -716,6 +724,7 @@ int security_file_permission(struct file *file, int mask)
  
        return fsnotify_perm(file, mask);
  }
@@ -911,7 +861,7 @@ index 18b35c6..12c67af 100644
  
  int security_file_alloc(struct file *file)
  {
-@@ -753,6 +762,7 @@ int security_mmap_file(struct file *file, unsigned long prot,
+@@ -775,6 +784,7 @@ int security_mmap_file(struct file *file, unsigned long prot,
                return ret;
        return ima_file_mmap(file, prot);
  }
@@ -921,7 +871,7 @@ index 18b35c6..12c67af 100644
  {
 diff -urN /usr/share/empty/Documentation/ABI/testing/debugfs-aufs linux/Documentation/ABI/testing/debugfs-aufs
 --- /usr/share/empty/Documentation/ABI/testing/debugfs-aufs    1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/ABI/testing/debugfs-aufs       2015-03-27 21:56:35.453461667 +0100
++++ linux/Documentation/ABI/testing/debugfs-aufs       2015-04-13 15:10:20.773489965 +0200
 @@ -0,0 +1,50 @@
 +What:         /debug/aufs/si_<id>/
 +Date:         March 2009
@@ -975,7 +925,7 @@ diff -urN /usr/share/empty/Documentation/ABI/testing/debugfs-aufs linux/Document
 +              will be empty. About XINO files, see the aufs manual.
 diff -urN /usr/share/empty/Documentation/ABI/testing/sysfs-aufs linux/Documentation/ABI/testing/sysfs-aufs
 --- /usr/share/empty/Documentation/ABI/testing/sysfs-aufs      1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/ABI/testing/sysfs-aufs 2015-03-27 21:56:35.456795001 +0100
++++ linux/Documentation/ABI/testing/sysfs-aufs 2015-04-13 15:10:20.773489965 +0200
 @@ -0,0 +1,31 @@
 +What:         /sys/fs/aufs/si_<id>/
 +Date:         March 2009
@@ -1010,8 +960,8 @@ diff -urN /usr/share/empty/Documentation/ABI/testing/sysfs-aufs linux/Documentat
 +              will be empty. About XINO files, see the aufs manual.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt linux/Documentation/filesystems/aufs/design/01intro.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/01intro.txt    2015-03-27 21:56:35.456795001 +0100
-@@ -0,0 +1,161 @@
++++ linux/Documentation/filesystems/aufs/design/01intro.txt    2015-04-13 15:10:20.773489965 +0200
+@@ -0,0 +1,170 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
 +# 
@@ -1042,7 +992,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt lin
 +- multi layered stackable unification filesystem, the member directory
 +  is called as a branch.
 +- branch permission and attribute, 'readonly', 'real-readonly',
-+  'readwrite', 'whiteout-able', 'link-able whiteout' and their
++  'readwrite', 'whiteout-able', 'link-able whiteout', etc. and their
 +  combination.
 +- internal "file copy-on-write".
 +- logical deletion, whiteout.
@@ -1093,11 +1043,16 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt lin
 +- unnecessary copy-up may happen, for example mmap(MAP_PRIVATE) after
 +  open(O_RDWR).
 +
-+Unionfs has a longer history. When I started implementing a stacking filesystem
-+(Aug 2005), it already existed. It has virtual super_block, inode,
-+dentry and file objects and they have an array pointing lower same kind
-+objects. After contributing many patches for Unionfs, I re-started my
-+project AUFS (Jun 2006).
++In linux-3.18, "overlay" filesystem (formerly known as "overlayfs") was
++merged into mainline. This is another implementation of UnionMount as a
++separated filesystem. All the limitations and known problems which
++UnionMount are equally inherited to "overlay" filesystem.
++
++Unionfs has a longer history. When I started implementing a stackable
++filesystem (Aug 2005), it already existed. It has virtual super_block,
++inode, dentry and file objects and they have an array pointing lower
++same kind objects. After contributing many patches for Unionfs, I
++re-started my project AUFS (Jun 2006).
 +
 +In AUFS, the structure of filesystem resembles to Unionfs, but I
 +implemented my own ideas, approaches and enhancements and it became
@@ -1119,11 +1074,14 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt lin
 +- DM snapshot-merge may help a lot when users try merging. in the
 +  fs-layer union, users will use rsync(1).
 +
++You may want to read my old paper "Filesystems in LiveCD"
++(http://aufs.sourceforge.net/aufs2/report/sq/sq.pdf).
 +
-+Several characters/aspects of aufs
++
++Several characters/aspects/persona of aufs
 +----------------------------------------------------------------------
 +
-+Aufs has several characters or aspects.
++Aufs has several characters, aspects or persona.
 +1. a filesystem, callee of VFS helper
 +2. sub-VFS, caller of VFS helper for branches
 +3. a virtual filesystem which maintains persistent inode number
@@ -1154,10 +1112,11 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt lin
 +numbers. This is particularly important to support exporting a
 +filesystem via NFS. Aufs is a virtual filesystem which doesn't have a
 +backend block device for its own. But some storage is necessary to
-+maintain inode number. It may be a large space and may not suit to keep
-+in memory. Aufs rents some space from its first writable branch
-+filesystem (by default) and creates file(s) on it. These files are
-+created by aufs internally and removed soon (currently) keeping opened.
++keep and maintain the inode numbers. It may be a large space and may not
++suit to keep in memory. Aufs rents some space from its first writable
++branch filesystem (by default) and creates file(s) on it. These files
++are created by aufs internally and removed soon (currently) keeping
++opened.
 +Note: Because these files are removed, they are totally gone after
 +      unmounting aufs. It means the inode numbers are not persistent
 +      across unmount or reboot. I have a plan to make them really
@@ -1175,8 +1134,8 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/01intro.txt lin
 +about it. But currently I have implemented it in kernel space.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt linux/Documentation/filesystems/aufs/design/02struct.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt        1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/02struct.txt   2015-03-27 21:56:35.456795001 +0100
-@@ -0,0 +1,251 @@
++++ linux/Documentation/filesystems/aufs/design/02struct.txt   2015-04-13 15:10:20.773489965 +0200
+@@ -0,0 +1,258 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
 +# 
@@ -1208,18 +1167,18 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +
 +Aufs lookup operation finds /ro/fileA and gets dentry for that. These
 +pointers are stored in a aufs dentry. The array in aufs dentry will be,
-+- [0] = NULL
++- [0] = NULL (because /rw/fileA doesn't exist)
 +- [1] = /ro/fileA
 +
 +This style of an array is essentially same to the aufs
 +superblock/inode/dentry/file objects.
 +
 +Because aufs supports manipulating branches, ie. add/delete/change
-+dynamically, these objects has its own generation. When branches are
-+changed, the generation in aufs superblock is incremented. And a
-+generation in other object are compared when it is accessed.
-+When a generation in other objects are obsoleted, aufs refreshes the
-+internal array.
++branches dynamically, these objects has its own generation. When
++branches are changed, the generation in aufs superblock is
++incremented. And a generation in other object are compared when it is
++accessed. When a generation in other objects are obsoleted, aufs
++refreshes the internal array.
 +
 +
 +Superblock
@@ -1227,8 +1186,8 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +Additionally aufs superblock has some data for policies to select one
 +among multiple writable branches, XIB files, pseudo-links and kobject.
 +See below in detail.
-+About the policies which supports copy-down a directory, see policy.txt
-+too.
++About the policies which supports copy-down a directory, see
++wbr_policy.txt too.
 +
 +
 +Branch and XINO(External Inode Number Translation Table)
@@ -1248,13 +1207,20 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +might appear. If your branch filesystem consumes disk space for such
 +holes, then you should specify 'xino=' option at mounting aufs.
 +
++Aufs has a mount option to free the disk blocks for such holes in XINO
++files on tmpfs or ramdisk. But it is not so effective actually. If you
++meet a problem of disk shortage due to XINO files, then you should try
++"tmpfs-ino.patch" (and "vfs-ino.patch" too) in aufs4-standalone.git.
++The patch localizes the assignment inumbers per tmpfs-mount and avoid
++the holes in XINO files.
++
 +Also a writable branch has three kinds of "whiteout bases". All these
-+are existed when the branch is joined to aufs and the names are
++are existed when the branch is joined to aufs, and their names are
 +whiteout-ed doubly, so that users will never see their names in aufs
 +hierarchy.
-+1. a regular file which will be linked to all whiteouts.
++1. a regular file which will be hardlinked to all whiteouts.
 +2. a directory to store a pseudo-link.
-+3. a directory to store an "orphan-ed" file temporary.
++3. a directory to store an "orphan"-ed file temporary.
 +
 +1. Whiteout Base
 +   When you remove a file on a readonly branch, aufs handles it as a
@@ -1271,8 +1237,8 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +   creating a file under this dir, the file is unlinked.
 +
 +Because aufs supports manipulating branches, ie. add/delete/change
-+dynamically, a branch has its own id. When the branch order changes, aufs
-+finds the new index by searching the branch id.
++dynamically, a branch has its own id. When the branch order changes,
++aufs finds the new index by searching the branch id.
 +
 +
 +Pseudo-link
@@ -1285,7 +1251,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +simple list. If fileB is read after unlinking fileA, aufs returns
 +filedata from the pseudo-link instead of the lower readonly
 +branch. Because the pseudo-link is based upon the inode, to keep the
-+inode number by xino (see above) is important.
++inode number by xino (see above) is essentially necessary.
 +
 +All the hardlinks under the Pseudo-link Directory of the writable branch
 +should be restored in a proper location later. Aufs provides a utility
@@ -1303,12 +1269,13 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +XIB(external inode number bitmap)
 +----------------------------------------------------------------------
 +Addition to the xino file per a branch, aufs has an external inode number
-+bitmap in a superblock object. It is also a file such like a xino file.
++bitmap in a superblock object. It is also an internal file such like a
++xino file.
 +It is a simple bitmap to mark whether the aufs inode number is in-use or
 +not.
 +To reduce the file I/O, aufs prepares a single memory page to cache xib.
 +
-+Aufs implements a feature to truncate/refresh both of xino and xib to
++As well as XINO files, aufs has a feature to truncate/refresh XIB to
 +reduce the number of consumed disk blocks for these files.
 +
 +
@@ -1320,7 +1287,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +with eliminating the whiteout-ed ones, and sets it to file (dir)
 +object. So the file object has its entry list until it is closed. The
 +entry list will be updated when the file position is zero and becomes
-+old. This decision is made in aufs automatically.
++obsoleted. This decision is made in aufs automatically.
 +
 +The dynamically allocated memory block for the name of entries has a
 +unit of 512 bytes (by default) and stores the names contiguously (no
@@ -1359,9 +1326,8 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +its completion. This approach solves a problem of a signal handler
 +simply.
 +If aufs didn't adopt the workqueue and changed the privilege of the
-+process, and if the mkdir/write call arises SIGXFSZ or other signal,
-+then the user process might gain a privilege or the generated core file
-+was owned by a superuser.
++process, then the process may receive the unexpected SIGXFSZ or other
++signals.
 +
 +Also aufs uses the system global workqueue ("events" kernel thread) too
 +for asynchronous tasks, such like handling inotify/fsnotify, re-creating a
@@ -1379,7 +1345,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +
 +Basically the whiteout represents "logical deletion" which stops aufs to
 +lookup further, but also it represents "dir is opaque" which also stop
-+lookup.
++further lookup.
 +
 +In aufs, rmdir(2) and rename(2) for dir uses whiteout alternatively.
 +In order to make several functions in a single systemcall to be
@@ -1387,7 +1353,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +unique whiteouted name.
 +For example, in rename(2) dir where the target dir already existed, aufs
 +renames the target dir to a temporary unique whiteouted name before the
-+actual rename on a branch and then handles other actions (make it opaque,
++actual rename on a branch, and then handles other actions (make it opaque,
 +update the attributes, etc). If an error happens in these actions, aufs
 +simply renames the whiteouted name back and returns an error. If all are
 +succeeded, aufs registers a function to remove the whiteouted unique
@@ -1417,7 +1383,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +- diropq for the ancestor directories may exist on the upper branch.
 +- free space on the lower branch will reduce.
 +- another access to the file may happen during moving-down, including
-+  UDBA.
++  UDBA (see "Revalidate Dentry and UDBA").
 +- the file should not be hard-linked nor pseudo-linked. they should be
 +  handled by auplink utility later.
 +
@@ -1430,8 +1396,8 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/02struct.txt li
 +For this purpose, use "aumvdown" command in aufs-util.git.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt linux/Documentation/filesystems/aufs/design/03lookup.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt        1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/03lookup.txt   2015-03-27 21:56:35.456795001 +0100
-@@ -0,0 +1,133 @@
++++ linux/Documentation/filesystems/aufs/design/03lookup.txt   2015-04-13 15:10:20.776823376 +0200
+@@ -0,0 +1,113 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
 +# 
@@ -1451,23 +1417,13 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt li
 +Lookup in a Branch
 +----------------------------------------------------------------------
 +Since aufs has a character of sub-VFS (see Introduction), it operates
-+lookup for branches as VFS does. It may be a heavy work. Generally
-+speaking struct nameidata is a bigger structure and includes many
-+information. But almost all lookup operation in aufs is the simplest
-+case, ie. lookup only an entry directly connected to its parent. Digging
-+down the directory hierarchy is unnecessary.
-+
-+VFS has a function lookup_one_len() for that use, but it is not usable
-+for a branch filesystem which requires struct nameidata. So aufs
-+implements a simple lookup wrapper function. When a branch filesystem
-+allows NULL as nameidata, it calls lookup_one_len(). Otherwise it builds
-+a simplest nameidata and calls lookup_hash().
-+Here aufs applies "a principle in NFSD", ie. if the filesystem supports
-+NFS-export, then it has to support NULL as a nameidata parameter for
-+->create(), ->lookup() and ->d_revalidate(). So the lookup wrapper in
-+aufs tests if ->s_export_op in the branch is NULL or not.
-+
-+When a branch is a remote filesystem, aufs basically trusts its
++lookup for branches as VFS does. It may be a heavy work. But almost all
++lookup operation in aufs is the simplest case, ie. lookup only an entry
++directly connected to its parent. Digging down the directory hierarchy
++is unnecessary. VFS has a function lookup_one_len() for that use, and
++aufs calls it.
++
++When a branch is a remote filesystem, aufs basically relies upon its
 +->d_revalidate(), also aufs forces the hardest revalidate tests for
 +them.
 +For d_revalidate, aufs implements three levels of revalidate tests. See
@@ -1482,7 +1438,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt li
 +- "dirA" exists under /ro, but /rw. and its mode is 0700.
 +- user invoked "chmod a+rx /au/dirA"
 +- the internal copy-up is activated and "/rw/dirA" is created and its
-+  permission bits are set to world readble.
++  permission bits are set to world readable.
 +- then "/au/dirA" becomes world readable?
 +
 +In this case, /ro/dirA is still 0700 since it exists in readonly branch,
@@ -1491,8 +1447,9 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt li
 +allowed it by chmod. Should really aufs rejects showing the entries
 +under /ro/dirA?
 +
-+To be honest, I don't have a best solution for this case. So aufs
-+implements 'dirperm1' and 'nodirperm1' and leave it to users.
++To be honest, I don't have a good solution for this case. So aufs
++implements 'dirperm1' and 'nodirperm1' mount options, and leave it to
++users.
 +When dirperm1 is specified, aufs checks only the highest one for the
 +directory permission, and shows the entries. Otherwise, as usual, checks
 +every dir existing on all branches and rejects the request.
@@ -1502,17 +1459,6 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt li
 +branch is many.
 +
 +
-+Loopback Mount
-+----------------------------------------------------------------------
-+Basically aufs supports any type of filesystem and block device for a
-+branch (actually there are some exceptions). But it is prohibited to add
-+a loopback mounted one whose backend file exists in a filesystem which is
-+already added to aufs. The reason is to protect aufs from a recursive
-+lookup. If it was allowed, the aufs lookup operation might re-enter a
-+lookup for the loopback mounted branch in the same context, and will
-+cause a deadlock.
-+
-+
 +Revalidate Dentry and UDBA (User's Direct Branch Access)
 +----------------------------------------------------------------------
 +Generally VFS helpers re-validate a dentry as a part of lookup.
@@ -1562,13 +1508,13 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/03lookup.txt li
 +   itself.
 +3. No Extra Validation
 +   This is the simplest test and doesn't add any additional revalidation
-+   test, and skip therevalidatin in step 4. It is useful and improves
++   test, and skip the revalidation in step 4. It is useful and improves
 +   aufs performance when system surely hide the aufs branches from user,
 +   by over-mounting something (or another method).
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt linux/Documentation/filesystems/aufs/design/04branch.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt        1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/04branch.txt   2015-03-27 21:56:35.456795001 +0100
-@@ -0,0 +1,75 @@
++++ linux/Documentation/filesystems/aufs/design/04branch.txt   2015-04-13 15:10:20.776823376 +0200
+@@ -0,0 +1,74 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
 +# 
@@ -1594,8 +1540,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt li
 +Add a Branch
 +----------------------------------------------------------------------
 +o Confirm the adding dir exists outside of aufs, including loopback
-+  mount.
-+- and other various attributes...
++  mount, and its various attributes.
 +o Initialize the xino file and whiteout bases if necessary.
 +  See struct.txt.
 +
@@ -1610,7 +1555,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt li
 +  writable branch, and the writable branch is world-writable, then a
 +  malicious guy may create /etc/passwd on the writable branch directly
 +  and the infected file will be valid in aufs.
-+  I am afraid it can be a security issue, but nothing to do except
++  I am afraid it can be a security issue, but aufs can do nothing except
 +  producing a warning.
 +
 +
@@ -1646,7 +1591,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/04branch.txt li
 +    same named entry on the upper branch.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.txt linux/Documentation/filesystems/aufs/design/05wbr_policy.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.txt    1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/05wbr_policy.txt       2015-03-27 21:56:35.456795001 +0100
++++ linux/Documentation/filesystems/aufs/design/05wbr_policy.txt       2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,64 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -1671,9 +1616,9 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.tx
 +writable branch which has the parent (or ancestor) dir of the target
 +file is chosen (top-down-parent policy).
 +By user's request, aufs implements some other policies to select the
-+writable branch, for file creation two policies, round-robin and
-+most-free-space policies. For copy-up three policies, top-down-parent,
-+bottom-up-parent and bottom-up policies.
++writable branch, for file creation several policies, round-robin,
++most-free-space, and other policies. For copy-up, top-down-parent,
++bottom-up-parent, bottom-up and others.
 +
 +As expected, the round-robin policy selects the branch in circular. When
 +you have two writable branches and creates 10 new files, 5 files will be
@@ -1714,7 +1659,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/05wbr_policy.tx
 +  copyup policy.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt linux/Documentation/filesystems/aufs/design/06fhsm.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt  1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06fhsm.txt     2015-03-27 21:56:35.456795001 +0100
++++ linux/Documentation/filesystems/aufs/design/06fhsm.txt     2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,120 @@
 +
 +# Copyright (C) 2011-2015 Junjiro R. Okajima
@@ -1738,9 +1683,9 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt linu
 +----------------------------------------------------------------------
 +Hierarchical Storage Management (or HSM) is a well-known feature in the
 +storage world. Aufs provides this feature as file-based with multiple
-+writable branches, based upon the principle of "Colder-Lower".
++writable branches, based upon the principle of "Colder, the Lower".
 +Here the word "colder" means that the less used files, and "lower" means
-+that the position in the order of the stacked branches.
++that the position in the order of the stacked branches vertically.
 +These multiple writable branches are prioritized, ie. the topmost one
 +should be the fastest drive and be used heavily.
 +
@@ -1838,7 +1783,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06fhsm.txt linu
 +should restore the original file state after an error happens.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt linux/Documentation/filesystems/aufs/design/06mmap.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt  1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06mmap.txt     2015-03-27 21:56:35.460128334 +0100
++++ linux/Documentation/filesystems/aufs/design/06mmap.txt     2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,46 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -1862,7 +1807,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt linu
 +interaction with aufs. It means aufs_mmap() calls the branch fs's
 +->mmap().
 +This approach is simple and good, but there is one problem.
-+Under /proc, several entries show the mmap-ped files by its path (with
++Under /proc, several entries show the mmapped files by its path (with
 +device and inode number), and the printed path will be the path on the
 +branch fs's instead of virtual aufs's.
 +This is not a problem in most cases, but some utilities lsof(1) (and its
@@ -1879,7 +1824,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt linu
 +  incremented.
 +- merging vma maintains the ref count too.
 +
-+This is not a good approach. It just faking the printed path. But it
++This is not a good approach. It just fakes the printed path. But it
 +leaves all behaviour around f_mapping unchanged. This is surely an
 +advantage.
 +Actually aufs had adopted another complicated approach which calls
@@ -1888,7 +1833,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06mmap.txt linu
 +switching the approach.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt linux/Documentation/filesystems/aufs/design/06xattr.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/06xattr.txt    2015-03-27 21:56:35.460128334 +0100
++++ linux/Documentation/filesystems/aufs/design/06xattr.txt    2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,96 @@
 +
 +# Copyright (C) 2014-2015 Junjiro R. Okajima
@@ -1912,7 +1857,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt lin
 +----------------------------------------------------------------------
 +For the inode standard attributes (owner, group, timestamps, etc.), aufs
 +shows the values from the topmost existing file. This behaviour is good
-+for the non-dir entreis since the bahaviour exactly matches the shown
++for the non-dir entries since the bahaviour exactly matches the shown
 +information. But for the directories, aufs considers all the same named
 +entries on the lower branches. Which means, if one of the lower entry
 +rejects readdir call, then aufs returns an error even if the topmost
@@ -1925,14 +1870,14 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt lin
 +
 +A similar issue can happen around XATTR.
 +getxattr(2) and listxattr(2) families behave as if dirperm1 option is
-+always set. Otherwise these very unpleasant situation can happen.
-+- listxattr(2) may return the duplicated entires.
++always set. Otherwise these very unpleasant situation would happen.
++- listxattr(2) may return the duplicated entries.
 +- users may not be able to remove or reset the XATTR forever,
 +
 +
 +XATTR/EA support in the internal (copy,move)-(up,down)
 +----------------------------------------------------------------------
-+Generally the extended attributes of inode are categorazied as these.
++Generally the extended attributes of inode are categorized as these.
 +- "security" for LSM and capability.
 +- "system" for posix ACL, 'acl' mount option is required for the branch
 +  fs generally.
@@ -1946,12 +1891,12 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt lin
 +
 +In copy-up, the support for XATTR on the dst branch may differ from the
 +src branch. In this case, the copy-up operation will get an error and
-+the original user operation which triggered the copy-up fails. It can
-+happen that even all copy-up will fail.
++the original user operation which triggered the copy-up will fail. It
++can happen that even all copy-up will fail.
 +When both of src and dst branches support XATTR and if an error occurs
 +during copying XATTR, then the copy-up should fail obviously. That is a
 +good reason and aufs should return an error to userspace. But when only
-+the src branch support XATTR, aufs should not return an error.
++the src branch support that XATTR, aufs should not return an error.
 +For example, the src branch supports ACL but the dst branch doesn't
 +because the dst branch may natively un-support it or temporary
 +un-support it due to "noacl" mount option. Of course, the dst branch fs
@@ -1965,15 +1910,15 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt lin
 +
 +For the copy-up operation, there two basic approaches.
 +- copy the specified XATTR only (by category above), and return the
-+  error if it happens inconditionally.
++  error unconditionally if it happens.
 +- copy all XATTR, and ignore the error on the specified category only.
 +
 +In order to support XATTR and to implement the correct behaviour, aufs
-+chooses the latter approach and introduces some attributes for its
-+branch, "icexsec", "icexsys", "icextr", "icexusr", and "icexoth".
++chooses the latter approach and introduces some new branch attributes,
++"icexsec", "icexsys", "icextr", "icexusr", and "icexoth".
 +They correspond to the XATTR namespaces (see above). Additionally, to be
-+convenient, "icex" is also provided which means all "ix*" attributes are
-+set.
++convenient, "icex" is also provided which means all "icex*" attributes
++are set (here the word "icex" stands for "ignore copy-error on XATTR").
 +
 +The meaning of these attributes is to ignore the error from setting
 +XATTR on that branch.
@@ -1988,7 +1933,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/06xattr.txt lin
 +now, aufs implements the branch attributes to ignore the error.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt linux/Documentation/filesystems/aufs/design/07export.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt        1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/07export.txt   2015-03-27 21:56:35.460128334 +0100
++++ linux/Documentation/filesystems/aufs/design/07export.txt   2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,58 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -2030,10 +1975,10 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt li
 +  + find the index of a branch from its id in handle, and check it is
 +    still exist in aufs.
 +  + 1st level: get the inode number from handle and search it in cache.
-+  + 2nd level: if not found, get the parent inode number from handle and
-+    search it in cache. and then open the parent dir, find the matching
-+    inode number by vfs_readdir() and get its name, and call
-+    lookup_one_len() for the target dentry.
++  + 2nd level: if not found in cache, get the parent inode number from
++    the handle and search it in cache. and then open the found parent
++    dir, find the matching inode number by vfs_readdir() and get its
++    name, and call lookup_one_len() for the target dentry.
 +  + 3rd level: if the parent dir is not cached, call
 +    exportfs_decode_fh() for a branch and get the parent on a branch,
 +    build a pathname of it, convert it a pathname in aufs, call
@@ -2050,7 +1995,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/07export.txt li
 +  lookup_one_len(), vfs_getattr(), encode_fh() and others.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/08shwh.txt linux/Documentation/filesystems/aufs/design/08shwh.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/08shwh.txt  1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/08shwh.txt     2015-03-27 21:56:35.460128334 +0100
++++ linux/Documentation/filesystems/aufs/design/08shwh.txt     2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,52 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -2106,8 +2051,8 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/08shwh.txt linu
 +initramfs will use it to replace the old one at the next boot.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/10dynop.txt linux/Documentation/filesystems/aufs/design/10dynop.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/10dynop.txt 1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/10dynop.txt    2015-03-27 21:56:35.460128334 +0100
-@@ -0,0 +1,46 @@
++++ linux/Documentation/filesystems/aufs/design/10dynop.txt    2015-04-13 15:10:20.776823376 +0200
+@@ -0,0 +1,47 @@
 +
 +# Copyright (C) 2010-2015 Junjiro R. Okajima
 +#
@@ -2132,32 +2077,33 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/10dynop.txt lin
 +operation. Some FS have multiple sets of them. For instance, ext2 has
 +three sets, one for XIP, for NOBH, and for normal.
 +Since aufs overrides and redirects these operations, sometimes aufs has
-+to change its behaviour according to the branch FS type. More imporantly
++to change its behaviour according to the branch FS type. More importantly
 +VFS acts differently if a function (member in the struct) is set or
 +not. It means aufs should have several sets of operations and select one
 +among them according to the branch FS definition.
 +
-+In order to solve this problem and not to affect the behavour of VFS,
++In order to solve this problem and not to affect the behaviour of VFS,
 +aufs defines these operations dynamically. For instance, aufs defines
-+aio_read function for struct file_operations, but it may not be set to
-+the file_operations. When the branch FS doesn't have it, aufs doesn't
-+set it to its file_operations while the function definition itself is
-+still alive. So the behaviour of io_submit(2) will not change, and it
-+will return an error when aio_read is not defined.
++dummy direct_IO function for struct address_space_operations, but it may
++not be set to the address_space_operations actually. When the branch FS
++doesn't have it, aufs doesn't set it to its address_space_operations
++while the function definition itself is still alive. So the behaviour
++itself will not change, and it will return an error when direct_IO is
++not set.
 +
 +The lifetime of these dynamically generated operation object is
 +maintained by aufs branch object. When the branch is removed from aufs,
 +the reference counter of the object is decremented. When it reaches
 +zero, the dynamically generated operation object will be freed.
 +
-+This approach is designed to support AIO (io_submit), Direcit I/O and
-+XIP mainly.
-+Currently this approach is applied to file_operations and
-+vm_operations_struct for regular files only.
++This approach is designed to support AIO (io_submit), Direct I/O and
++XIP (DAX) mainly.
++Currently this approach is applied to address_space_operations for
++regular files only.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/99plan.txt linux/Documentation/filesystems/aufs/design/99plan.txt
 --- /usr/share/empty/Documentation/filesystems/aufs/design/99plan.txt  1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/design/99plan.txt     2015-03-27 21:56:35.460128334 +0100
-@@ -0,0 +1,58 @@
++++ linux/Documentation/filesystems/aufs/design/99plan.txt     2015-04-13 15:10:20.776823376 +0200
+@@ -0,0 +1,57 @@
 +
 +# Copyright (C) 2005-2015 Junjiro R. Okajima
 +# 
@@ -2185,7 +2131,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/99plan.txt linu
 +----------------------------------------------------------------------
 +Aufs1 allows aufs to be another aufs's readonly branch.
 +This feature was developed by a user's request. But it may not be used
-+currecnly.
++currently.
 +
 +
 +Refresh the Opened File (refrof)
@@ -2203,7 +2149,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/99plan.txt linu
 +- user opened "/au/fileA".
 +- he or someone else inserts a branch (/new) between /rw and /ro.
 +  /au = /rw + /new + /ro
-+- the new branch has "fileA".
++- the new branch contains "fileA".
 +- user reads from the opened "fileA"
 +- which filedata should aufs return, from /ro or /new?
 +
@@ -2214,12 +2160,11 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/design/99plan.txt linu
 +Here again I don't have a best and final answer. I got an idea to
 +implement 'refrof' and 'norefrof' option. When 'refrof' (REFResh the
 +Opened File) is specified (by default), aufs returns the filedata from
-+/new.
-+Otherwise from /new.
++/new. Otherwise from /ro.
 diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documentation/filesystems/aufs/README
 --- /usr/share/empty/Documentation/filesystems/aufs/README     1970-01-01 01:00:00.000000000 +0100
-+++ linux/Documentation/filesystems/aufs/README        2015-03-27 21:56:35.456795001 +0100
-@@ -0,0 +1,389 @@
++++ linux/Documentation/filesystems/aufs/README        2015-04-13 15:10:20.773489965 +0200
+@@ -0,0 +1,384 @@
 +
 +Aufs3 -- advanced multi layered unification filesystem version 3.x
 +http://aufs.sf.net
@@ -2229,7 +2174,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documenta
 +0. Introduction
 +----------------------------------------
 +In the early days, aufs was entirely re-designed and re-implemented
-+Unionfs Version 1.x series. After many original ideas, approaches,
++Unionfs Version 1.x series. Adding many original ideas, approaches,
 +improvements and implementations, it becomes totally different from
 +Unionfs while keeping the basic features.
 +Recently, Unionfs Version 2.x series begin taking some of the same
@@ -2264,7 +2209,12 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documenta
 +- dynamic branch manipulation, add, del.
 +- etc...
 +
-+Also there are many enhancements in aufs1, such as:
++Also there are many enhancements in aufs, such as:
++- test only the highest one for the directory permission (dirperm1)
++- copyup on open (coo=)
++- 'move' policy for copy-up between two writable branches, after
++  checking free space.
++- xattr, acl
 +- readdir(3) in userspace.
 +- keep inode number by external inode number table
 +- keep the timestamps of file/dir in internal copyup operation
@@ -2296,28 +2246,18 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documenta
 +
 +Currently these features are dropped temporary from aufs3.
 +See design/08plan.txt in detail.
-+- test only the highest one for the directory permission (dirperm1)
-+- copyup on open (coo=)
 +- nested mount, i.e. aufs as readonly no-whiteout branch of another aufs
 +  (robr)
 +- statistics of aufs thread (/sys/fs/aufs/stat)
-+- delegation mode (dlgt)
-+  a delegation of the internal branch access to support task I/O
-+  accounting, which also supports Linux Security Modules (LSM) mainly
-+  for Suse AppArmor.
-+- intent.open/create (file open in a single lookup)
 +
 +Features or just an idea in the future (see also design/*.txt),
 +- reorder the branch index without del/re-add.
 +- permanent xino files for NFSD
 +- an option for refreshing the opened files after add/del branches
-+- 'move' policy for copy-up between two writable branches, after
-+  checking free space.
 +- light version, without branch manipulation. (unnecessary?)
 +- copyup in userspace
 +- inotify in userspace
 +- readv/writev
-+- xattr, acl
 +
 +
 +2. Download
@@ -2611,7 +2551,7 @@ diff -urN /usr/share/empty/Documentation/filesystems/aufs/README linux/Documenta
 +# End: ;
 diff -urN /usr/share/empty/fs/aufs/aufs.h linux/fs/aufs/aufs.h
 --- /usr/share/empty/fs/aufs/aufs.h    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/aufs.h       2015-03-27 21:56:35.460128334 +0100
++++ linux/fs/aufs/aufs.h       2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,59 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -2674,8 +2614,8 @@ diff -urN /usr/share/empty/fs/aufs/aufs.h linux/fs/aufs/aufs.h
 +#endif /* __AUFS_H__ */
 diff -urN /usr/share/empty/fs/aufs/branch.c linux/fs/aufs/branch.c
 --- /usr/share/empty/fs/aufs/branch.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/branch.c     2015-03-27 21:56:35.460128334 +0100
-@@ -0,0 +1,1408 @@
++++ linux/fs/aufs/branch.c     2015-04-13 15:10:20.780156788 +0200
+@@ -0,0 +1,1406 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -3878,7 +3818,6 @@ diff -urN /usr/share/empty/fs/aufs/branch.c linux/fs/aufs/branch.c
 +      aufs_bindex_t br_id;
 +      unsigned char verbose, writer;
 +      struct file *file, *hf, **array;
-+      struct inode *inode;
 +      struct au_hfile *hfile;
 +
 +      mnt_flags = au_mntflags(sb);
@@ -3907,10 +3846,9 @@ diff -urN /usr/share/empty/fs/aufs/branch.c linux/fs/aufs/branch.c
 +                      goto out_array;
 +              }
 +
-+              inode = file_inode(file);
 +              hfile = &au_fi(file)->fi_htop;
 +              hf = hfile->hf_file;
-+              if (!S_ISREG(inode->i_mode)
++              if (!d_is_reg(file->f_path.dentry)
 +                  || !(file->f_mode & FMODE_WRITE)
 +                  || hfile->hf_br->br_id != br_id
 +                  || !(hf->f_mode & FMODE_WRITE))
@@ -4086,7 +4024,7 @@ diff -urN /usr/share/empty/fs/aufs/branch.c linux/fs/aufs/branch.c
 +}
 diff -urN /usr/share/empty/fs/aufs/branch.h linux/fs/aufs/branch.h
 --- /usr/share/empty/fs/aufs/branch.h  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/branch.h     2015-03-27 21:56:35.460128334 +0100
++++ linux/fs/aufs/branch.h     2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,267 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -4357,7 +4295,7 @@ diff -urN /usr/share/empty/fs/aufs/branch.h linux/fs/aufs/branch.h
 +#endif /* __AUFS_BRANCH_H__ */
 diff -urN /usr/share/empty/fs/aufs/conf.mk linux/fs/aufs/conf.mk
 --- /usr/share/empty/fs/aufs/conf.mk   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/conf.mk      2015-03-27 21:56:35.460128334 +0100
++++ linux/fs/aufs/conf.mk      2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,38 @@
 +
 +AuConfStr = CONFIG_AUFS_FS=${CONFIG_AUFS_FS}
@@ -4399,8 +4337,8 @@ diff -urN /usr/share/empty/fs/aufs/conf.mk linux/fs/aufs/conf.mk
 +-include ${srctree}/${src}/conf_priv.mk
 diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
 --- /usr/share/empty/fs/aufs/cpup.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/cpup.c       2015-03-27 21:56:35.460128334 +0100
-@@ -0,0 +1,1303 @@
++++ linux/fs/aufs/cpup.c       2015-04-13 15:10:20.780156788 +0200
+@@ -0,0 +1,1308 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -4569,6 +4507,8 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
 +             struct au_cpup_reg_attr *h_src_attr)
 +{
 +      int err, sbits, icex;
++      unsigned int mnt_flags;
++      unsigned char verbose;
 +      struct iattr ia;
 +      struct path h_path;
 +      struct inode *h_isrc, *h_idst;
@@ -4620,8 +4560,11 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
 +      }
 +
 +      icex = br->br_perm & AuBrAttr_ICEX;
-+      if (!err)
-+              err = au_cpup_xattr(h_path.dentry, h_src, icex);
++      if (!err) {
++              mnt_flags = au_mntflags(dst->d_sb);
++              verbose = !!au_opt_test(mnt_flags, VERBOSE);
++              err = au_cpup_xattr(h_path.dentry, h_src, icex, verbose);
++      }
 +
 +      return err;
 +}
@@ -5223,7 +5166,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
 +      return err;
 +}
 +
-+#if 0 /* unused */
++#if 0 /* reserved */
 +struct au_cpup_single_args {
 +      int *errp;
 +      struct au_cp_generic *cpg;
@@ -5279,7 +5222,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
 +      return do_sio;
 +}
 +
-+#if 0 /* unused */
++#if 0 /* reserved */
 +int au_sio_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent)
 +{
 +      int err, wkq_err;
@@ -5706,7 +5649,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.c linux/fs/aufs/cpup.c
 +}
 diff -urN /usr/share/empty/fs/aufs/cpup.h linux/fs/aufs/cpup.h
 --- /usr/share/empty/fs/aufs/cpup.h    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/cpup.h       2015-03-27 21:56:35.460128334 +0100
++++ linux/fs/aufs/cpup.h       2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,94 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -5804,7 +5747,7 @@ diff -urN /usr/share/empty/fs/aufs/cpup.h linux/fs/aufs/cpup.h
 +#endif /* __AUFS_CPUP_H__ */
 diff -urN /usr/share/empty/fs/aufs/dbgaufs.c linux/fs/aufs/dbgaufs.c
 --- /usr/share/empty/fs/aufs/dbgaufs.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dbgaufs.c    2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dbgaufs.c    2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,432 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -6165,7 +6108,7 @@ diff -urN /usr/share/empty/fs/aufs/dbgaufs.c linux/fs/aufs/dbgaufs.c
 +void dbgaufs_si_fin(struct au_sbinfo *sbinfo)
 +{
 +      /*
-+       * This function is a dynamic '__init' function actually,
++       * This function is a dynamic '__fin' function actually,
 +       * so the tiny check for si_rwsem is unnecessary.
 +       */
 +      /* AuRwMustWriteLock(&sbinfo->si_rwsem); */
@@ -6240,7 +6183,7 @@ diff -urN /usr/share/empty/fs/aufs/dbgaufs.c linux/fs/aufs/dbgaufs.c
 +}
 diff -urN /usr/share/empty/fs/aufs/dbgaufs.h linux/fs/aufs/dbgaufs.h
 --- /usr/share/empty/fs/aufs/dbgaufs.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dbgaufs.h    2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dbgaufs.h    2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,48 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -6292,7 +6235,7 @@ diff -urN /usr/share/empty/fs/aufs/dbgaufs.h linux/fs/aufs/dbgaufs.h
 +#endif /* __DBGAUFS_H__ */
 diff -urN /usr/share/empty/fs/aufs/dcsub.c linux/fs/aufs/dcsub.c
 --- /usr/share/empty/fs/aufs/dcsub.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dcsub.c      2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dcsub.c      2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,224 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -6520,8 +6463,8 @@ diff -urN /usr/share/empty/fs/aufs/dcsub.c linux/fs/aufs/dcsub.c
 +}
 diff -urN /usr/share/empty/fs/aufs/dcsub.h linux/fs/aufs/dcsub.h
 --- /usr/share/empty/fs/aufs/dcsub.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dcsub.h      2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,125 @@
++++ linux/fs/aufs/dcsub.h      2015-04-13 15:10:20.780156788 +0200
+@@ -0,0 +1,132 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -6551,8 +6494,6 @@ diff -urN /usr/share/empty/fs/aufs/dcsub.h linux/fs/aufs/dcsub.h
 +#include <linux/dcache.h>
 +#include <linux/fs.h>
 +
-+struct dentry;
-+
 +struct au_dpage {
 +      int ndentry;
 +      struct dentry **dentries;
@@ -6640,6 +6581,15 @@ diff -urN /usr/share/empty/fs/aufs/dcsub.h linux/fs/aufs/dcsub.h
 +              && !memcmp(a->name, b->name, a->len);
 +}
 +
++/*
++ * by the commit
++ * 360f547 2015-01-25 dcache: let the dentry count go down to zero without
++ *                    taking d_lock
++ * the type of d_lockref.count became int, but the inlined function d_count()
++ * still returns unsigned int.
++ * I don't know why. Maybe it is for every d_count() users?
++ * Anyway au_dcount() lives on.
++ */
 +static inline int au_dcount(struct dentry *d)
 +{
 +      return (int)d_count(d);
@@ -6649,8 +6599,8 @@ diff -urN /usr/share/empty/fs/aufs/dcsub.h linux/fs/aufs/dcsub.h
 +#endif /* __AUFS_DCSUB_H__ */
 diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
 --- /usr/share/empty/fs/aufs/debug.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/debug.c      2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,520 @@
++++ linux/fs/aufs/debug.c      2015-04-13 15:10:20.780156788 +0200
+@@ -0,0 +1,438 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -6672,7 +6622,6 @@ diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
 + * debug print functions
 + */
 +
-+#include <linux/vt_kern.h>
 +#include "aufs.h"
 +
 +/* Returns 0, or -errno.  arg is in kp->arg. */
@@ -7005,42 +6954,6 @@ diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
 +
 +/* ---------------------------------------------------------------------- */
 +
-+void au_dbg_sleep_jiffy(int jiffy)
-+{
-+      while (jiffy)
-+              jiffy = schedule_timeout_uninterruptible(jiffy);
-+}
-+
-+void au_dbg_iattr(struct iattr *ia)
-+{
-+#define AuBit(name)                                   \
-+      do {                                            \
-+              if (ia->ia_valid & ATTR_ ## name)       \
-+                      dpri(#name "\n");               \
-+      } while (0)
-+      AuBit(MODE);
-+      AuBit(UID);
-+      AuBit(GID);
-+      AuBit(SIZE);
-+      AuBit(ATIME);
-+      AuBit(MTIME);
-+      AuBit(CTIME);
-+      AuBit(ATIME_SET);
-+      AuBit(MTIME_SET);
-+      AuBit(FORCE);
-+      AuBit(ATTR_FLAG);
-+      AuBit(KILL_SUID);
-+      AuBit(KILL_SGID);
-+      AuBit(FILE);
-+      AuBit(KILL_PRIV);
-+      AuBit(OPEN);
-+      AuBit(TIMES_SET);
-+#undef        AuBit
-+      dpri("ia_file %p\n", ia->ia_file);
-+}
-+
-+/* ---------------------------------------------------------------------- */
-+
 +void __au_dbg_verify_dinode(struct dentry *dentry, const char *func, int line)
 +{
 +      struct inode *h_inode, *inode = dentry->d_inode;
@@ -7075,27 +6988,6 @@ diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
 +      }
 +}
 +
-+void au_dbg_verify_dir_parent(struct dentry *dentry, unsigned int sigen)
-+{
-+      struct dentry *parent;
-+
-+      parent = dget_parent(dentry);
-+      AuDebugOn(!d_is_dir(dentry));
-+      AuDebugOn(IS_ROOT(dentry));
-+      AuDebugOn(au_digen_test(parent, sigen));
-+      dput(parent);
-+}
-+
-+void au_dbg_verify_nondir_parent(struct dentry *dentry, unsigned int sigen)
-+{
-+      struct dentry *parent;
-+
-+      parent = dget_parent(dentry);
-+      AuDebugOn(d_is_dir(dentry));
-+      AuDebugOn(au_digen_test(parent, sigen));
-+      dput(parent);
-+}
-+
 +void au_dbg_verify_gen(struct dentry *parent, unsigned int sigen)
 +{
 +      int err, i, j;
@@ -7130,26 +7022,6 @@ diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
 +
 +/* ---------------------------------------------------------------------- */
 +
-+void au_debug_sbinfo_init(struct au_sbinfo *sbinfo __maybe_unused)
-+{
-+#ifdef AuForceNoPlink
-+      au_opt_clr(sbinfo->si_mntflags, PLINK);
-+#endif
-+#ifdef AuForceNoXino
-+      au_opt_clr(sbinfo->si_mntflags, XINO);
-+#endif
-+#ifdef AuForceNoRefrof
-+      au_opt_clr(sbinfo->si_mntflags, REFROF);
-+#endif
-+#ifdef AuForceHnotify
-+      au_opt_set_udba(sbinfo->si_mntflags, UDBA_HNOTIFY);
-+#endif
-+#ifdef AuForceRd0
-+      sbinfo->si_rdblk = 0;
-+      sbinfo->si_rdhash = 0;
-+#endif
-+}
-+
 +int __init au_debug_init(void)
 +{
 +      aufs_bindex_t bindex;
@@ -7165,16 +7037,12 @@ diff -urN /usr/share/empty/fs/aufs/debug.c linux/fs/aufs/debug.c
 +      pr_warn("CONFIG_4KSTACKS is defined.\n");
 +#endif
 +
-+#ifdef AuForceNoBrs
-+      sysaufs_brs = 0;
-+#endif
-+
 +      return 0;
 +}
 diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 --- /usr/share/empty/fs/aufs/debug.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/debug.h      2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,262 @@
++++ linux/fs/aufs/debug.h      2015-04-13 15:10:20.780156788 +0200
+@@ -0,0 +1,228 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -7283,8 +7151,6 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 +
 +/* ---------------------------------------------------------------------- */
 +
-+struct au_sbinfo;
-+struct au_finfo;
 +struct dentry;
 +#ifdef CONFIG_AUFS_DEBUG
 +extern struct mutex au_dbg_mtx;
@@ -7302,19 +7168,13 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 +struct super_block;
 +void au_dpri_sb(struct super_block *sb);
 +
-+void au_dbg_sleep_jiffy(int jiffy);
-+struct iattr;
-+void au_dbg_iattr(struct iattr *ia);
-+
 +#define au_dbg_verify_dinode(d) __au_dbg_verify_dinode(d, __func__, __LINE__)
 +void __au_dbg_verify_dinode(struct dentry *dentry, const char *func, int line);
-+void au_dbg_verify_dir_parent(struct dentry *dentry, unsigned int sigen);
-+void au_dbg_verify_nondir_parent(struct dentry *dentry, unsigned int sigen);
 +void au_dbg_verify_gen(struct dentry *parent, unsigned int sigen);
 +void au_dbg_verify_kthread(void);
 +
 +int __init au_debug_init(void);
-+void au_debug_sbinfo_init(struct au_sbinfo *sbinfo);
++
 +#define AuDbgWhlist(w) do { \
 +      mutex_lock(&au_dbg_mtx); \
 +      AuDbg(#w "\n"); \
@@ -7364,32 +7224,11 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 +      mutex_unlock(&au_dbg_mtx); \
 +} while (0)
 +
-+#define AuDbgSleep(sec) do { \
-+      AuDbg("sleep %d sec\n", sec); \
-+      ssleep(sec); \
-+} while (0)
-+
-+#define AuDbgSleepJiffy(jiffy) do { \
-+      AuDbg("sleep %d jiffies\n", jiffy); \
-+      au_dbg_sleep_jiffy(jiffy); \
-+} while (0)
-+
-+#define AuDbgIAttr(ia) do { \
-+      AuDbg("ia_valid 0x%x\n", (ia)->ia_valid); \
-+      au_dbg_iattr(ia); \
-+} while (0)
-+
 +#define AuDbgSym(addr) do {                           \
 +      char sym[KSYM_SYMBOL_LEN];                      \
 +      sprint_symbol(sym, (unsigned long)addr);        \
 +      AuDbg("%s\n", sym);                             \
 +} while (0)
-+
-+#define AuInfoSym(addr) do {                          \
-+      char sym[KSYM_SYMBOL_LEN];                      \
-+      sprint_symbol(sym, (unsigned long)addr);        \
-+      AuInfo("%s\n", sym);                            \
-+} while (0)
 +#else
 +AuStubVoid(au_dbg_verify_dinode, struct dentry *dentry)
 +AuStubVoid(au_dbg_verify_dir_parent, struct dentry *dentry, unsigned int sigen)
@@ -7398,7 +7237,6 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 +AuStubVoid(au_dbg_verify_gen, struct dentry *parent, unsigned int sigen)
 +AuStubVoid(au_dbg_verify_kthread, void)
 +AuStubInt0(__init au_debug_init, void)
-+AuStubVoid(au_debug_sbinfo_init, struct au_sbinfo *sbinfo)
 +
 +#define AuDbgWhlist(w)                do {} while (0)
 +#define AuDbgVdir(v)          do {} while (0)
@@ -7407,11 +7245,7 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 +#define AuDbgDentry(d)                do {} while (0)
 +#define AuDbgFile(f)          do {} while (0)
 +#define AuDbgSb(sb)           do {} while (0)
-+#define AuDbgSleep(sec)               do {} while (0)
-+#define AuDbgSleepJiffy(jiffy)        do {} while (0)
-+#define AuDbgIAttr(ia)                do {} while (0)
 +#define AuDbgSym(addr)                do {} while (0)
-+#define AuInfoSym(addr)               do {} while (0)
 +#endif /* CONFIG_AUFS_DEBUG */
 +
 +/* ---------------------------------------------------------------------- */
@@ -7439,7 +7273,7 @@ diff -urN /usr/share/empty/fs/aufs/debug.h linux/fs/aufs/debug.h
 +#endif /* __AUFS_DEBUG_H__ */
 diff -urN /usr/share/empty/fs/aufs/dentry.c linux/fs/aufs/dentry.c
 --- /usr/share/empty/fs/aufs/dentry.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dentry.c     2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dentry.c     2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,1097 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -8540,7 +8374,7 @@ diff -urN /usr/share/empty/fs/aufs/dentry.c linux/fs/aufs/dentry.c
 +};
 diff -urN /usr/share/empty/fs/aufs/dentry.h linux/fs/aufs/dentry.h
 --- /usr/share/empty/fs/aufs/dentry.h  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dentry.h     2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dentry.h     2015-04-13 15:10:20.780156788 +0200
 @@ -0,0 +1,233 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -8777,7 +8611,7 @@ diff -urN /usr/share/empty/fs/aufs/dentry.h linux/fs/aufs/dentry.h
 +#endif /* __AUFS_DENTRY_H__ */
 diff -urN /usr/share/empty/fs/aufs/dinfo.c linux/fs/aufs/dinfo.c
 --- /usr/share/empty/fs/aufs/dinfo.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dinfo.c      2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dinfo.c      2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,544 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -9325,7 +9159,7 @@ diff -urN /usr/share/empty/fs/aufs/dinfo.c linux/fs/aufs/dinfo.c
 +}
 diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
 --- /usr/share/empty/fs/aufs/dir.c     1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dir.c        2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dir.c        2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,643 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -9972,7 +9806,7 @@ diff -urN /usr/share/empty/fs/aufs/dir.c linux/fs/aufs/dir.c
 +};
 diff -urN /usr/share/empty/fs/aufs/dir.h linux/fs/aufs/dir.h
 --- /usr/share/empty/fs/aufs/dir.h     1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dir.h        2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/dir.h        2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,130 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -10106,8 +9940,8 @@ diff -urN /usr/share/empty/fs/aufs/dir.h linux/fs/aufs/dir.h
 +#endif /* __AUFS_DIR_H__ */
 diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
 --- /usr/share/empty/fs/aufs/dynop.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dynop.c      2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,379 @@
++++ linux/fs/aufs/dynop.c      2015-04-13 15:10:20.783490201 +0200
+@@ -0,0 +1,369 @@
 +/*
 + * Copyright (C) 2010-2015 Junjiro R. Okajima
 + *
@@ -10296,9 +10130,8 @@ diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
 +      DySetAop(invalidatepage);
 +      DySetAop(releasepage);
 +      DySetAop(freepage);
-+      /* these two will be changed according to an aufs mount option */
++      /* this one will be changed according to an aufs mount option */
 +      DySetAop(direct_IO);
-+      DySetAop(get_xip_mem);
 +      DySetAop(migratepage);
 +      DySetAop(launder_page);
 +      DySetAop(is_partially_uptodate);
@@ -10308,7 +10141,6 @@ diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
 +      DySetAop(swap_deactivate);
 +
 +      DyDbgSize(cnt, *h_aop);
-+      dyaop->da_get_xip_mem = h_aop->get_xip_mem;
 +}
 +
 +/* ---------------------------------------------------------------------- */
@@ -10372,21 +10204,13 @@ diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
 + * of the succeeding I/O. The dio mount option enables O_DIRECT and makes
 + * open(O_DIRECT) always succeed, but the succeeding I/O may return an error.
 + * See the aufs manual in detail.
-+ *
-+ * To keep this behaviour, aufs has to set NULL to ->get_xip_mem too, and the
-+ * performance of fadvise() and madvise() may be affected.
 + */
 +static void dy_adx(struct au_dyaop *dyaop, int do_dx)
 +{
-+      if (!do_dx) {
++      if (!do_dx)
 +              dyaop->da_op.direct_IO = NULL;
-+              dyaop->da_op.get_xip_mem = NULL;
-+      } else {
++      else
 +              dyaop->da_op.direct_IO = aufs_aop.direct_IO;
-+              dyaop->da_op.get_xip_mem = aufs_aop.get_xip_mem;
-+              if (!dyaop->da_get_xip_mem)
-+                      dyaop->da_op.get_xip_mem = NULL;
-+      }
 +}
 +
 +static struct au_dyaop *dy_aget(struct au_branch *br,
@@ -10489,8 +10313,8 @@ diff -urN /usr/share/empty/fs/aufs/dynop.c linux/fs/aufs/dynop.c
 +}
 diff -urN /usr/share/empty/fs/aufs/dynop.h linux/fs/aufs/dynop.h
 --- /usr/share/empty/fs/aufs/dynop.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/dynop.h      2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,75 @@
++++ linux/fs/aufs/dynop.h      2015-04-13 15:10:20.783490201 +0200
+@@ -0,0 +1,74 @@
 +/*
 + * Copyright (C) 2010-2015 Junjiro R. Okajima
 + *
@@ -10517,7 +10341,8 @@ diff -urN /usr/share/empty/fs/aufs/dynop.h linux/fs/aufs/dynop.h
 +
 +#ifdef __KERNEL__
 +
-+#include "inode.h"
++#include <linux/fs.h>
++#include <linux/kref.h>
 +
 +enum {AuDy_AOP, AuDyLast};
 +
@@ -10547,8 +10372,6 @@ diff -urN /usr/share/empty/fs/aufs/dynop.h linux/fs/aufs/dynop.h
 +struct au_dyaop {
 +      struct au_dykey                 da_key;
 +      struct address_space_operations da_op; /* not const */
-+      int (*da_get_xip_mem)(struct address_space *, pgoff_t, int,
-+                            void **, unsigned long *);
 +};
 +
 +/* ---------------------------------------------------------------------- */
@@ -10568,7 +10391,7 @@ diff -urN /usr/share/empty/fs/aufs/dynop.h linux/fs/aufs/dynop.h
 +#endif /* __AUFS_DYNOP_H__ */
 diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
 --- /usr/share/empty/fs/aufs/export.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/export.c     2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/export.c     2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,831 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -11403,7 +11226,7 @@ diff -urN /usr/share/empty/fs/aufs/export.c linux/fs/aufs/export.c
 +}
 diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
 --- /usr/share/empty/fs/aufs/fhsm.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/fhsm.c       2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/fhsm.c       2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,426 @@
 +/*
 + * Copyright (C) 2011-2015 Junjiro R. Okajima
@@ -11833,8 +11656,8 @@ diff -urN /usr/share/empty/fs/aufs/fhsm.c linux/fs/aufs/fhsm.c
 +}
 diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 --- /usr/share/empty/fs/aufs/file.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/file.c       2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,829 @@
++++ linux/fs/aufs/file.c       2015-04-13 15:10:20.783490201 +0200
+@@ -0,0 +1,819 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -11960,7 +11783,7 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 +              .pin    = &pin,
 +              .flags  = AuCpup_DTIME | AuCpup_HOPEN
 +      };
-+      struct inode *inode, *delegated;
++      struct inode *delegated;
 +      struct super_block *sb;
 +      struct au_sbinfo *sbinfo;
 +      struct au_fhsm *fhsm;
@@ -11970,8 +11793,7 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 +      struct au_hinode *hdir;
 +
 +      DiMustWriteLock(dentry);
-+      inode = dentry->d_inode;
-+      IiMustWriteLock(inode);
++      IiMustWriteLock(dentry->d_inode);
 +
 +      err = 0;
 +      if (IS_ROOT(dentry))
@@ -11993,7 +11815,7 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 +      cmoo = au_br_cmoo(br->br_perm);
 +      if (!cmoo)
 +              goto out;
-+      if (!S_ISREG(inode->i_mode))
++      if (!d_is_reg(dentry))
 +              cmoo &= AuBrAttr_COO_ALL;
 +      if (!cmoo)
 +              goto out;
@@ -12591,14 +12413,6 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 +                            struct iov_iter *iter, loff_t offset)
 +{ BUG(); return 0; }
 +
-+/*
-+ * it will never be called, but madvise and fadvise behaves differently
-+ * when get_xip_mem is defined
-+ */
-+static int aufs_get_xip_mem(struct address_space *mapping, pgoff_t pgoff,
-+                          int create, void **kmem, unsigned long *pfn)
-+{ BUG(); return 0; }
-+
 +/* they will never be called. */
 +#ifdef CONFIG_AUFS_DEBUG
 +static int aufs_write_begin(struct file *file, struct address_space *mapping,
@@ -12644,7 +12458,6 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 +const struct address_space_operations aufs_aop = {
 +      .readpage               = aufs_readpage,
 +      .direct_IO              = aufs_direct_IO,
-+      .get_xip_mem            = aufs_get_xip_mem,
 +#ifdef CONFIG_AUFS_DEBUG
 +      .writepage              = aufs_writepage,
 +      /* no writepages, because of writepage */
@@ -12666,7 +12479,7 @@ diff -urN /usr/share/empty/fs/aufs/file.c linux/fs/aufs/file.c
 +};
 diff -urN /usr/share/empty/fs/aufs/file.h linux/fs/aufs/file.h
 --- /usr/share/empty/fs/aufs/file.h    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/file.h       2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/file.h       2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,284 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -12954,7 +12767,7 @@ diff -urN /usr/share/empty/fs/aufs/file.h linux/fs/aufs/file.h
 +#endif /* __AUFS_FILE_H__ */
 diff -urN /usr/share/empty/fs/aufs/finfo.c linux/fs/aufs/finfo.c
 --- /usr/share/empty/fs/aufs/finfo.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/finfo.c      2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/finfo.c      2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,156 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -13114,7 +12927,7 @@ diff -urN /usr/share/empty/fs/aufs/finfo.c linux/fs/aufs/finfo.c
 +}
 diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
 --- /usr/share/empty/fs/aufs/f_op.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/f_op.c       2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/f_op.c       2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,814 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -13932,8 +13745,8 @@ diff -urN /usr/share/empty/fs/aufs/f_op.c linux/fs/aufs/f_op.c
 +};
 diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 --- /usr/share/empty/fs/aufs/fstype.h  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/fstype.h     2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,469 @@
++++ linux/fs/aufs/fstype.h     2015-04-13 15:10:20.783490201 +0200
+@@ -0,0 +1,388 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -14045,60 +13858,6 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +#endif
 +}
 +
-+static inline int au_test_ocfs2(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_OCFS2_FS) || defined(CONFIG_OCFS2_FS_MODULE)
-+      return sb->s_magic == OCFS2_SUPER_MAGIC;
-+#else
-+      return 0;
-+#endif
-+}
-+
-+static inline int au_test_ocfs2_dlmfs(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_OCFS2_FS_O2CB) || defined(CONFIG_OCFS2_FS_O2CB_MODULE)
-+      return sb->s_magic == DLMFS_MAGIC;
-+#else
-+      return 0;
-+#endif
-+}
-+
-+static inline int au_test_coda(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_CODA_FS) || defined(CONFIG_CODA_FS_MODULE)
-+      return sb->s_magic == CODA_SUPER_MAGIC;
-+#else
-+      return 0;
-+#endif
-+}
-+
-+static inline int au_test_v9fs(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_9P_FS) || defined(CONFIG_9P_FS_MODULE)
-+      return sb->s_magic == V9FS_MAGIC;
-+#else
-+      return 0;
-+#endif
-+}
-+
-+static inline int au_test_ext4(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_EXT4_FS) || defined(CONFIG_EXT4_FS_MODULE)
-+      return sb->s_magic == EXT4_SUPER_MAGIC;
-+#else
-+      return 0;
-+#endif
-+}
-+
-+static inline int au_test_sysv(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_SYSV_FS) || defined(CONFIG_SYSV_FS_MODULE)
-+      return !strcmp(au_sbtype(sb), "sysv");
-+#else
-+      return 0;
-+#endif
-+}
-+
 +static inline int au_test_ramfs(struct super_block *sb)
 +{
 +      return sb->s_magic == RAMFS_MAGIC;
@@ -14153,15 +13912,6 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +#endif
 +}
 +
-+static inline int au_test_cifs(struct super_block *sb __maybe_unused)
-+{
-+#if defined(CONFIG_CIFS_FS) || defined(CONFIGCIFS_FS_MODULE)
-+      return sb->s_magic == CIFS_MAGIC_NUMBER;
-+#else
-+      return 0;
-+#endif
-+}
-+
 +static inline int au_test_fat(struct super_block *sb __maybe_unused)
 +{
 +#if defined(CONFIG_FAT_FS) || defined(CONFIG_FAT_FS_MODULE)
@@ -14291,10 +14041,7 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +{
 +      return au_test_nfs(sb)
 +              || au_test_fuse(sb)
-+              /* || au_test_ocfs2(sb) */      /* untested */
 +              /* || au_test_btrfs(sb) */      /* untested */
-+              /* || au_test_coda(sb) */       /* untested */
-+              /* || au_test_v9fs(sb) */       /* untested */
 +              ;
 +}
 +
@@ -14307,10 +14054,6 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +              || au_test_btrfs(sb)
 +              || au_test_ubifs(sb)
 +              || au_test_hfsplus(sb)  /* maintained, but incorrect */
-+              /* || au_test_ext4(sb) */       /* untested */
-+              /* || au_test_ocfs2(sb) */      /* untested */
-+              /* || au_test_ocfs2_dlmfs(sb) */ /* untested */
-+              /* || au_test_sysv(sb) */       /* untested */
 +              /* || au_test_minix(sb) */      /* untested */
 +              ;
 +}
@@ -14322,7 +14065,6 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +static inline int au_test_fs_bad_iattr(struct super_block *sb)
 +{
 +      return au_test_fs_bad_iattr_size(sb)
-+              /* || au_test_cifs(sb) */       /* untested */
 +              || au_test_fat(sb)
 +              || au_test_msdos(sb)
 +              || au_test_vfat(sb);
@@ -14347,19 +14089,9 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +      return au_test_nfs(sb)
 +              || au_test_fuse(sb)
 +              || au_test_ubifs(sb)
-+              /* || au_test_cifs(sb) */       /* untested */
 +              ;
 +}
 +
-+/*
-+ * filesystems which requires replacing i_mapping.
-+ */
-+static inline int au_test_fs_bad_mapping(struct super_block *sb)
-+{
-+      return au_test_fuse(sb)
-+              || au_test_ubifs(sb);
-+}
-+
 +/* temporary support for i#1 in cramfs */
 +static inline int au_test_fs_unique_ino(struct inode *inode)
 +{
@@ -14405,7 +14137,7 @@ diff -urN /usr/share/empty/fs/aufs/fstype.h linux/fs/aufs/fstype.h
 +#endif /* __AUFS_FSTYPE_H__ */
 diff -urN /usr/share/empty/fs/aufs/hfsnotify.c linux/fs/aufs/hfsnotify.c
 --- /usr/share/empty/fs/aufs/hfsnotify.c       1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hfsnotify.c  2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/hfsnotify.c  2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,288 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -14697,7 +14429,7 @@ diff -urN /usr/share/empty/fs/aufs/hfsnotify.c linux/fs/aufs/hfsnotify.c
 +};
 diff -urN /usr/share/empty/fs/aufs/hfsplus.c linux/fs/aufs/hfsplus.c
 --- /usr/share/empty/fs/aufs/hfsplus.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hfsplus.c    2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/hfsplus.c    2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,56 @@
 +/*
 + * Copyright (C) 2010-2015 Junjiro R. Okajima
@@ -14740,7 +14472,7 @@ diff -urN /usr/share/empty/fs/aufs/hfsplus.c linux/fs/aufs/hfsplus.c
 +
 +      h_file = NULL;
 +      if (au_test_hfsplus(h_dentry->d_sb)
-+          && S_ISREG(h_dentry->d_inode->i_mode))
++          && d_is_reg(h_dentry))
 +              h_file = au_h_open(dentry, bindex,
 +                                 O_RDONLY | O_NOATIME | O_LARGEFILE,
 +                                 /*file*/NULL, force_wr);
@@ -14757,7 +14489,7 @@ diff -urN /usr/share/empty/fs/aufs/hfsplus.c linux/fs/aufs/hfsplus.c
 +}
 diff -urN /usr/share/empty/fs/aufs/hnotify.c linux/fs/aufs/hnotify.c
 --- /usr/share/empty/fs/aufs/hnotify.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/hnotify.c    2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/hnotify.c    2015-04-13 15:10:20.783490201 +0200
 @@ -0,0 +1,714 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -15475,7 +15207,7 @@ diff -urN /usr/share/empty/fs/aufs/hnotify.c linux/fs/aufs/hnotify.c
 +}
 diff -urN /usr/share/empty/fs/aufs/iinfo.c linux/fs/aufs/iinfo.c
 --- /usr/share/empty/fs/aufs/iinfo.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/iinfo.c      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/iinfo.c      2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,277 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -15756,7 +15488,7 @@ diff -urN /usr/share/empty/fs/aufs/iinfo.c linux/fs/aufs/iinfo.c
 +}
 diff -urN /usr/share/empty/fs/aufs/inode.c linux/fs/aufs/inode.c
 --- /usr/share/empty/fs/aufs/inode.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/inode.c      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/inode.c      2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,495 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -16255,8 +15987,8 @@ diff -urN /usr/share/empty/fs/aufs/inode.c linux/fs/aufs/inode.c
 +}
 diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 --- /usr/share/empty/fs/aufs/inode.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/inode.h      2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,667 @@
++++ linux/fs/aufs/inode.h      2015-04-13 15:10:20.786823613 +0200
+@@ -0,0 +1,670 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -16414,9 +16146,8 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +
 +/* au_wr_dir flags */
 +#define AuWrDir_ADD_ENTRY     1
-+#define AuWrDir_TMP_WHENTRY   (1 << 1)
-+#define AuWrDir_ISDIR         (1 << 2)
-+#define AuWrDir_TMPFILE               (1 << 3)
++#define AuWrDir_ISDIR         (1 << 1)
++#define AuWrDir_TMPFILE               (1 << 2)
 +#define au_ftest_wrdir(flags, name)   ((flags) & AuWrDir_##name)
 +#define au_fset_wrdir(flags, name) \
 +      do { (flags) |= AuWrDir_##name; } while (0)
@@ -16522,6 +16253,7 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +#ifdef CONFIG_PROC_FS
 +/* plink.c */
 +int au_plink_maint(struct super_block *sb, int flags);
++struct au_sbinfo;
 +void au_plink_maint_leave(struct au_sbinfo *sbinfo);
 +int au_plink_maint_enter(struct super_block *sb);
 +#ifdef CONFIG_AUFS_DEBUG
@@ -16553,7 +16285,8 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +
 +#ifdef CONFIG_AUFS_XATTR
 +/* xattr.c */
-+int au_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, int ignore_flags);
++int au_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, int ignore_flags,
++                unsigned int verbose);
 +ssize_t aufs_listxattr(struct dentry *dentry, char *list, size_t size);
 +ssize_t aufs_getxattr(struct dentry *dentry, const char *name, void *value,
 +                    size_t size);
@@ -16564,7 +16297,7 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +/* void au_xattr_init(struct super_block *sb); */
 +#else
 +AuStubInt0(au_cpup_xattr, struct dentry *h_dst, struct dentry *h_src,
-+         int ignore_flags);
++         int ignore_flags, unsigned int verbose);
 +/* AuStubVoid(au_xattr_init, struct super_block *sb); */
 +#endif
 +
@@ -16814,6 +16547,7 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +      }
 +}
 +
++#if 0 /* reserved */
 +static inline void au_pin_set_parent(struct au_pin *pin, struct dentry *parent)
 +{
 +      if (pin) {
@@ -16821,6 +16555,7 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +              pin->parent = dget(parent);
 +      }
 +}
++#endif
 +
 +/* ---------------------------------------------------------------------- */
 +
@@ -16926,7 +16661,7 @@ diff -urN /usr/share/empty/fs/aufs/inode.h linux/fs/aufs/inode.h
 +#endif /* __AUFS_INODE_H__ */
 diff -urN /usr/share/empty/fs/aufs/ioctl.c linux/fs/aufs/ioctl.c
 --- /usr/share/empty/fs/aufs/ioctl.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/ioctl.c      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/ioctl.c      2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,219 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -17149,7 +16884,7 @@ diff -urN /usr/share/empty/fs/aufs/ioctl.c linux/fs/aufs/ioctl.c
 +#endif
 diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
 --- /usr/share/empty/fs/aufs/i_op_add.c        1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op_add.c   2015-03-27 21:56:35.463461668 +0100
++++ linux/fs/aufs/i_op_add.c   2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,896 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -18049,8 +17784,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op_add.c linux/fs/aufs/i_op_add.c
 +}
 diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
 --- /usr/share/empty/fs/aufs/i_op.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op.c       2015-03-27 21:56:35.463461668 +0100
-@@ -0,0 +1,1299 @@
++++ linux/fs/aufs/i_op.c       2015-04-13 15:10:20.786823613 +0200
+@@ -0,0 +1,1297 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -18333,8 +18068,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
 +              h_parent = au_h_dptr(parent, bcpup);
 +              h_dir = h_parent->d_inode;
 +              mutex_lock_nested(&h_dir->i_mutex, AuLsc_I_PARENT);
-+              err = au_lkup_neg(dentry, bcpup,
-+                                au_ftest_wrdir(add_entry, TMP_WHENTRY));
++              err = au_lkup_neg(dentry, bcpup, /*wh*/0);
 +              /* todo: no unlock here */
 +              mutex_unlock(&h_dir->i_mutex);
 +
@@ -18368,7 +18102,6 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
 +      aufs_bindex_t bcpup, bstart, src_bstart;
 +      const unsigned char add_entry
 +              = au_ftest_wrdir(args->flags, ADD_ENTRY)
-+              | au_ftest_wrdir(args->flags, TMP_WHENTRY)
 +              | au_ftest_wrdir(args->flags, TMPFILE);
 +      struct super_block *sb;
 +      struct dentry *parent;
@@ -18816,7 +18549,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
 +
 +      if (ia->ia_valid & ATTR_FILE) {
 +              /* currently ftruncate(2) only */
-+              AuDebugOn(!S_ISREG(inode->i_mode));
++              AuDebugOn(!d_is_reg(dentry));
 +              file = ia->ia_file;
 +              err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/1);
 +              if (unlikely(err))
@@ -19352,7 +19085,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op.c linux/fs/aufs/i_op.c
 +};
 diff -urN /usr/share/empty/fs/aufs/i_op_del.c linux/fs/aufs/i_op_del.c
 --- /usr/share/empty/fs/aufs/i_op_del.c        1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op_del.c   2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/i_op_del.c   2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,507 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -19863,8 +19596,8 @@ diff -urN /usr/share/empty/fs/aufs/i_op_del.c linux/fs/aufs/i_op_del.c
 +}
 diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
 --- /usr/share/empty/fs/aufs/i_op_ren.c        1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/i_op_ren.c   2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,1035 @@
++++ linux/fs/aufs/i_op_ren.c   2015-04-13 15:10:20.786823613 +0200
+@@ -0,0 +1,1017 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -19899,7 +19632,6 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
 +#define AuRen_MNT_WRITE       (1 << 4)
 +#define AuRen_DT_DSTDIR       (1 << 5)
 +#define AuRen_DIROPQ  (1 << 6)
-+#define AuRen_CPUP    (1 << 7)
 +#define au_ftest_ren(flags, name)     ((flags) & AuRen_##name)
 +#define au_fset_ren(flags, name) \
 +      do { (flags) |= AuRen_##name; } while (0)
@@ -20010,20 +19742,6 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
 +              RevertFailure("rename %pd", a->src_dentry);
 +}
 +
-+static void au_ren_rev_cpup(int err, struct au_ren_args *a)
-+{
-+      int rerr;
-+
-+      a->h_path.dentry = a->dst_h_dentry;
-+      /* no delegation since it is just created */
-+      rerr = vfsub_unlink(a->dst_h_dir, &a->h_path, /*delegated*/NULL,
-+                          /*force*/0);
-+      au_set_h_dptr(a->src_dentry, a->btgt, NULL);
-+      au_set_dbstart(a->src_dentry, a->src_bstart);
-+      if (rerr)
-+              RevertFailure("unlink %pd", a->dst_h_dentry);
-+}
-+
 +static void au_ren_rev_whtmp(int err, struct au_ren_args *a)
 +{
 +      int rerr;
@@ -20258,10 +19976,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
 +      if (au_ftest_ren(a->flags, DIROPQ))
 +              au_ren_rev_diropq(err, a);
 +out_rename:
-+      if (!au_ftest_ren(a->flags, CPUP))
-+              au_ren_rev_rename(err, a);
-+      else
-+              au_ren_rev_cpup(err, a);
++      au_ren_rev_rename(err, a);
 +      dput(a->h_dst);
 +out_whtmp:
 +      if (a->thargs)
@@ -20902,7 +20617,7 @@ diff -urN /usr/share/empty/fs/aufs/i_op_ren.c linux/fs/aufs/i_op_ren.c
 +}
 diff -urN /usr/share/empty/fs/aufs/Kconfig linux/fs/aufs/Kconfig
 --- /usr/share/empty/fs/aufs/Kconfig   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/Kconfig      2015-03-27 21:56:35.460128334 +0100
++++ linux/fs/aufs/Kconfig      2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,185 @@
 +config AUFS_FS
 +      tristate "Aufs (Advanced multi layered unification filesystem) support"
@@ -21091,7 +20806,7 @@ diff -urN /usr/share/empty/fs/aufs/Kconfig linux/fs/aufs/Kconfig
 +endif
 diff -urN /usr/share/empty/fs/aufs/loop.c linux/fs/aufs/loop.c
 --- /usr/share/empty/fs/aufs/loop.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/loop.c       2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/loop.c       2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,145 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -21240,7 +20955,7 @@ diff -urN /usr/share/empty/fs/aufs/loop.c linux/fs/aufs/loop.c
 +}
 diff -urN /usr/share/empty/fs/aufs/loop.h linux/fs/aufs/loop.h
 --- /usr/share/empty/fs/aufs/loop.h    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/loop.h       2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/loop.h       2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,52 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -21296,8 +21011,8 @@ diff -urN /usr/share/empty/fs/aufs/loop.h linux/fs/aufs/loop.h
 +#endif /* __AUFS_LOOP_H__ */
 diff -urN /usr/share/empty/fs/aufs/magic.mk linux/fs/aufs/magic.mk
 --- /usr/share/empty/fs/aufs/magic.mk  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/magic.mk     2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,54 @@
++++ linux/fs/aufs/magic.mk     2015-04-13 15:10:20.786823613 +0200
+@@ -0,0 +1,30 @@
 +
 +# defined in ${srctree}/fs/fuse/inode.c
 +# tristate
@@ -21305,24 +21020,6 @@ diff -urN /usr/share/empty/fs/aufs/magic.mk linux/fs/aufs/magic.mk
 +ccflags-y += -DFUSE_SUPER_MAGIC=0x65735546
 +endif
 +
-+# defined in ${srctree}/fs/ocfs2/ocfs2_fs.h
-+# tristate
-+ifdef CONFIG_OCFS2_FS
-+ccflags-y += -DOCFS2_SUPER_MAGIC=0x7461636f
-+endif
-+
-+# defined in ${srctree}/fs/ocfs2/dlm/userdlm.h
-+# tristate
-+ifdef CONFIG_OCFS2_FS_O2CB
-+ccflags-y += -DDLMFS_MAGIC=0x76a9f425
-+endif
-+
-+# defined in ${srctree}/fs/cifs/cifsfs.c
-+# tristate
-+ifdef CONFIG_CIFS_FS
-+ccflags-y += -DCIFS_MAGIC_NUMBER=0xFF534D42
-+endif
-+
 +# defined in ${srctree}/fs/xfs/xfs_sb.h
 +# tristate
 +ifdef CONFIG_XFS_FS
@@ -21335,12 +21032,6 @@ diff -urN /usr/share/empty/fs/aufs/magic.mk linux/fs/aufs/magic.mk
 +ccflags-y += -DCONFIGFS_MAGIC=0x62656570
 +endif
 +
-+# defined in ${srctree}/fs/9p/v9fs.h
-+# tristate
-+ifdef CONFIG_9P_FS
-+ccflags-y += -DV9FS_MAGIC=0x01021997
-+endif
-+
 +# defined in ${srctree}/fs/ubifs/ubifs.h
 +# tristate
 +ifdef CONFIG_UBIFS_FS
@@ -21354,7 +21045,7 @@ diff -urN /usr/share/empty/fs/aufs/magic.mk linux/fs/aufs/magic.mk
 +endif
 diff -urN /usr/share/empty/fs/aufs/Makefile linux/fs/aufs/Makefile
 --- /usr/share/empty/fs/aufs/Makefile  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/Makefile     2015-03-27 21:56:35.460128334 +0100
++++ linux/fs/aufs/Makefile     2015-04-13 15:10:20.776823376 +0200
 @@ -0,0 +1,44 @@
 +
 +include ${src}/magic.mk
@@ -21402,7 +21093,7 @@ diff -urN /usr/share/empty/fs/aufs/Makefile linux/fs/aufs/Makefile
 +aufs-$(CONFIG_AUFS_MAGIC_SYSRQ) += sysrq.o
 diff -urN /usr/share/empty/fs/aufs/module.c linux/fs/aufs/module.c
 --- /usr/share/empty/fs/aufs/module.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/module.c     2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/module.c     2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,210 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -21616,7 +21307,7 @@ diff -urN /usr/share/empty/fs/aufs/module.c linux/fs/aufs/module.c
 +module_exit(aufs_exit);
 diff -urN /usr/share/empty/fs/aufs/module.h linux/fs/aufs/module.h
 --- /usr/share/empty/fs/aufs/module.h  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/module.h     2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/module.h     2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,104 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -21724,7 +21415,7 @@ diff -urN /usr/share/empty/fs/aufs/module.h linux/fs/aufs/module.h
 +#endif /* __AUFS_MODULE_H__ */
 diff -urN /usr/share/empty/fs/aufs/mvdown.c linux/fs/aufs/mvdown.c
 --- /usr/share/empty/fs/aufs/mvdown.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/mvdown.c     2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/mvdown.c     2015-04-13 15:10:20.786823613 +0200
 @@ -0,0 +1,694 @@
 +/*
 + * Copyright (C) 2011-2015 Junjiro R. Okajima
@@ -22422,8 +22113,8 @@ diff -urN /usr/share/empty/fs/aufs/mvdown.c linux/fs/aufs/mvdown.c
 +}
 diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
 --- /usr/share/empty/fs/aufs/opts.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/opts.c       2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,1859 @@
++++ linux/fs/aufs/opts.c       2015-04-13 15:10:20.786823613 +0200
+@@ -0,0 +1,1854 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -22454,11 +22145,11 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
 +
 +enum {
 +      Opt_br,
-+      Opt_add, Opt_del, Opt_mod, Opt_reorder, Opt_append, Opt_prepend,
-+      Opt_idel, Opt_imod, Opt_ireorder,
-+      Opt_dirwh, Opt_rdcache, Opt_rdblk, Opt_rdhash, Opt_rendir,
++      Opt_add, Opt_del, Opt_mod, Opt_append, Opt_prepend,
++      Opt_idel, Opt_imod,
++      Opt_dirwh, Opt_rdcache, Opt_rdblk, Opt_rdhash,
 +      Opt_rdblk_def, Opt_rdhash_def,
-+      Opt_xino, Opt_zxino, Opt_noxino,
++      Opt_xino, Opt_noxino,
 +      Opt_trunc_xino, Opt_trunc_xino_v, Opt_notrunc_xino,
 +      Opt_trunc_xino_path, Opt_itrunc_xino,
 +      Opt_trunc_xib, Opt_notrunc_xib,
@@ -22466,8 +22157,6 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
 +      Opt_plink, Opt_noplink, Opt_list_plink,
 +      Opt_udba,
 +      Opt_dio, Opt_nodio,
-+      /* Opt_lock, Opt_unlock, */
-+      Opt_cmd, Opt_cmd_args,
 +      Opt_diropq_a, Opt_diropq_w,
 +      Opt_warn_perm, Opt_nowarn_perm,
 +      Opt_wbr_copyup, Opt_wbr_create,
@@ -22556,8 +22245,6 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
 +      {Opt_dirperm1, "dirperm1"},
 +      {Opt_nodirperm1, "nodirperm1"},
 +
-+      {Opt_rendir, "rendir=%d"},
-+
 +      {Opt_refrof, "refrof"},
 +      {Opt_norefrof, "norefrof"},
 +
@@ -23074,7 +22761,6 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
 +                      u.xino_itrunc = &opt->xino_itrunc;
 +                      AuDbg("trunc_xino %d\n", u.xino_itrunc->bindex);
 +                      break;
-+
 +              case Opt_noxino:
 +                      AuLabel(noxino);
 +                      break;
@@ -24285,8 +23971,8 @@ diff -urN /usr/share/empty/fs/aufs/opts.c linux/fs/aufs/opts.c
 +}
 diff -urN /usr/share/empty/fs/aufs/opts.h linux/fs/aufs/opts.h
 --- /usr/share/empty/fs/aufs/opts.h    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/opts.h       2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,213 @@
++++ linux/fs/aufs/opts.h       2015-04-13 15:10:20.786823613 +0200
+@@ -0,0 +1,211 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -24314,7 +24000,6 @@ diff -urN /usr/share/empty/fs/aufs/opts.h linux/fs/aufs/opts.h
 +#ifdef __KERNEL__
 +
 +#include <linux/path.h>
-+#include "branch.h"
 +
 +struct file;
 +struct super_block;
@@ -24482,6 +24167,7 @@ diff -urN /usr/share/empty/fs/aufs/opts.h linux/fs/aufs/opts.h
 +
 +/* ---------------------------------------------------------------------- */
 +
++/* opts.c */
 +void au_optstr_br_perm(au_br_perm_str_t *str, int perm);
 +const char *au_optstr_udba(int udba);
 +const char *au_optstr_wbr_copyup(int wbr_copyup);
@@ -24496,13 +24182,11 @@ diff -urN /usr/share/empty/fs/aufs/opts.h linux/fs/aufs/opts.h
 +
 +unsigned int au_opt_udba(struct super_block *sb);
 +
-+/* ---------------------------------------------------------------------- */
-+
 +#endif /* __KERNEL__ */
 +#endif /* __AUFS_OPTS_H__ */
 diff -urN /usr/share/empty/fs/aufs/plink.c linux/fs/aufs/plink.c
 --- /usr/share/empty/fs/aufs/plink.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/plink.c      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/plink.c      2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,532 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -25038,7 +24722,7 @@ diff -urN /usr/share/empty/fs/aufs/plink.c linux/fs/aufs/plink.c
 +}
 diff -urN /usr/share/empty/fs/aufs/poll.c linux/fs/aufs/poll.c
 --- /usr/share/empty/fs/aufs/poll.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/poll.c       2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/poll.c       2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,55 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -25097,7 +24781,7 @@ diff -urN /usr/share/empty/fs/aufs/poll.c linux/fs/aufs/poll.c
 +}
 diff -urN /usr/share/empty/fs/aufs/posix_acl.c linux/fs/aufs/posix_acl.c
 --- /usr/share/empty/fs/aufs/posix_acl.c       1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/posix_acl.c  2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/posix_acl.c  2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,99 @@
 +/*
 + * Copyright (C) 2014-2015 Junjiro R. Okajima
@@ -25200,7 +24884,7 @@ diff -urN /usr/share/empty/fs/aufs/posix_acl.c linux/fs/aufs/posix_acl.c
 +}
 diff -urN /usr/share/empty/fs/aufs/procfs.c linux/fs/aufs/procfs.c
 --- /usr/share/empty/fs/aufs/procfs.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/procfs.c     2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/procfs.c     2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,169 @@
 +/*
 + * Copyright (C) 2010-2015 Junjiro R. Okajima
@@ -25373,7 +25057,7 @@ diff -urN /usr/share/empty/fs/aufs/procfs.c linux/fs/aufs/procfs.c
 +}
 diff -urN /usr/share/empty/fs/aufs/rdu.c linux/fs/aufs/rdu.c
 --- /usr/share/empty/fs/aufs/rdu.c     1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/rdu.c        2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/rdu.c        2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,388 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -25765,7 +25449,7 @@ diff -urN /usr/share/empty/fs/aufs/rdu.c linux/fs/aufs/rdu.c
 +#endif
 diff -urN /usr/share/empty/fs/aufs/rwsem.h linux/fs/aufs/rwsem.h
 --- /usr/share/empty/fs/aufs/rwsem.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/rwsem.h      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/rwsem.h      2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,191 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -25960,8 +25644,8 @@ diff -urN /usr/share/empty/fs/aufs/rwsem.h linux/fs/aufs/rwsem.h
 +#endif /* __AUFS_RWSEM_H__ */
 diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
 --- /usr/share/empty/fs/aufs/sbinfo.c  1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sbinfo.c     2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,353 @@
++++ linux/fs/aufs/sbinfo.c     2015-04-13 15:10:20.790157026 +0200
+@@ -0,0 +1,352 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -26088,7 +25772,6 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
 +      sbinfo->si_sb = sb;
 +      sb->s_fs_info = sbinfo;
 +      si_pid_set(sb);
-+      au_debug_sbinfo_init(sbinfo);
 +      return 0; /* success */
 +
 +out_br:
@@ -26317,7 +26000,7 @@ diff -urN /usr/share/empty/fs/aufs/sbinfo.c linux/fs/aufs/sbinfo.c
 +}
 diff -urN /usr/share/empty/fs/aufs/spl.h linux/fs/aufs/spl.h
 --- /usr/share/empty/fs/aufs/spl.h     1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/spl.h        2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/spl.h        2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,111 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -26432,8 +26115,8 @@ diff -urN /usr/share/empty/fs/aufs/spl.h linux/fs/aufs/spl.h
 +#endif /* __AUFS_SPL_H__ */
 diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
 --- /usr/share/empty/fs/aufs/super.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/super.c      2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,1009 @@
++++ linux/fs/aufs/super.c      2015-04-13 15:10:20.790157026 +0200
+@@ -0,0 +1,1007 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -26456,11 +26139,9 @@ diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
 + */
 +
 +#include <linux/mm.h>
-+#include <linux/module.h>
 +#include <linux/seq_file.h>
 +#include <linux/statfs.h>
 +#include <linux/vmalloc.h>
-+#include <linux/writeback.h>
 +#include "aufs.h"
 +
 +/*
@@ -27445,8 +27126,8 @@ diff -urN /usr/share/empty/fs/aufs/super.c linux/fs/aufs/super.c
 +};
 diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
 --- /usr/share/empty/fs/aufs/super.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/super.h      2015-03-27 21:56:35.466795000 +0100
-@@ -0,0 +1,641 @@
++++ linux/fs/aufs/super.h      2015-04-13 15:10:20.790157026 +0200
+@@ -0,0 +1,635 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -27628,12 +27309,6 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
 +       */
 +      unsigned int            si_dirwh;
 +
-+      /*
-+       * rename(2) a directory with all children.
-+       */
-+      /* reserved for future use */
-+      /* int                  si_rendir; */
-+
 +      /* pseudo_link list */
 +      struct au_sphlhead      si_plink[AuPlink_NHASH];
 +      wait_queue_head_t       si_plink_wq;
@@ -27988,7 +27663,7 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
 +      return locked;
 +}
 +
-+#if 0 /* unused */
++#if 0 /* reserved */
 +static inline int si_read_trylock(struct super_block *sb, int flags)
 +{
 +      if (au_ftest_lock(flags, FLUSH))
@@ -28003,7 +27678,7 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
 +      __si_read_unlock(sb);
 +}
 +
-+#if 0 /* unused */
++#if 0 /* reserved */
 +static inline int si_write_trylock(struct super_block *sb, int flags)
 +{
 +      if (au_ftest_lock(flags, FLUSH))
@@ -28018,7 +27693,7 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
 +      __si_write_unlock(sb);
 +}
 +
-+#if 0 /* unused */
++#if 0 /* reserved */
 +static inline void si_downgrade_lock(struct super_block *sb)
 +{
 +      __si_downgrade_lock(sb);
@@ -28090,7 +27765,7 @@ diff -urN /usr/share/empty/fs/aufs/super.h linux/fs/aufs/super.h
 +#endif /* __AUFS_SUPER_H__ */
 diff -urN /usr/share/empty/fs/aufs/sysaufs.c linux/fs/aufs/sysaufs.c
 --- /usr/share/empty/fs/aufs/sysaufs.c 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysaufs.c    2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/sysaufs.c    2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,104 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -28198,7 +27873,7 @@ diff -urN /usr/share/empty/fs/aufs/sysaufs.c linux/fs/aufs/sysaufs.c
 +}
 diff -urN /usr/share/empty/fs/aufs/sysaufs.h linux/fs/aufs/sysaufs.h
 --- /usr/share/empty/fs/aufs/sysaufs.h 1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysaufs.h    2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/sysaufs.h    2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,101 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -28303,7 +27978,7 @@ diff -urN /usr/share/empty/fs/aufs/sysaufs.h linux/fs/aufs/sysaufs.h
 +#endif /* __SYSAUFS_H__ */
 diff -urN /usr/share/empty/fs/aufs/sysfs.c linux/fs/aufs/sysfs.c
 --- /usr/share/empty/fs/aufs/sysfs.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysfs.c      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/sysfs.c      2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,372 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -28679,7 +28354,7 @@ diff -urN /usr/share/empty/fs/aufs/sysfs.c linux/fs/aufs/sysfs.c
 +}
 diff -urN /usr/share/empty/fs/aufs/sysrq.c linux/fs/aufs/sysrq.c
 --- /usr/share/empty/fs/aufs/sysrq.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/sysrq.c      2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/sysrq.c      2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,157 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -28840,7 +28515,7 @@ diff -urN /usr/share/empty/fs/aufs/sysrq.c linux/fs/aufs/sysrq.c
 +}
 diff -urN /usr/share/empty/fs/aufs/vdir.c linux/fs/aufs/vdir.c
 --- /usr/share/empty/fs/aufs/vdir.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/vdir.c       2015-03-27 21:56:35.466795000 +0100
++++ linux/fs/aufs/vdir.c       2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,889 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -29733,8 +29408,8 @@ diff -urN /usr/share/empty/fs/aufs/vdir.c linux/fs/aufs/vdir.c
 +}
 diff -urN /usr/share/empty/fs/aufs/vfsub.c linux/fs/aufs/vfsub.c
 --- /usr/share/empty/fs/aufs/vfsub.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/vfsub.c      2015-03-27 21:56:35.470128334 +0100
-@@ -0,0 +1,796 @@
++++ linux/fs/aufs/vfsub.c      2015-04-13 15:10:20.790157026 +0200
+@@ -0,0 +1,795 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -29756,7 +29431,6 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.c linux/fs/aufs/vfsub.c
 + * sub-routines for VFS
 + */
 +
-+#include <linux/ima.h>
 +#include <linux/namei.h>
 +#include <linux/security.h>
 +#include <linux/splice.h>
@@ -30533,8 +30207,8 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.c linux/fs/aufs/vfsub.c
 +}
 diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 --- /usr/share/empty/fs/aufs/vfsub.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/vfsub.h      2015-03-27 21:56:35.470128334 +0100
-@@ -0,0 +1,301 @@
++++ linux/fs/aufs/vfsub.h      2015-04-13 15:10:20.790157026 +0200
+@@ -0,0 +1,276 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
 + *
@@ -30562,7 +30236,6 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 +#ifdef __KERNEL__
 +
 +#include <linux/fs.h>
-+#include <linux/lglock.h>
 +#include <linux/mount.h>
 +#include <linux/xattr.h>
 +#include "debug.h"
@@ -30657,12 +30330,14 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 +      lockdep_on();
 +}
 +
++#if 0 /* reserved */
 +static inline void vfsub_mnt_drop_write_file(struct file *file)
 +{
 +      lockdep_off();
 +      mnt_drop_write_file(file);
 +      lockdep_on();
 +}
++#endif
 +
 +/* ---------------------------------------------------------------------- */
 +
@@ -30714,11 +30389,13 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 +      return flags;
 +}
 +
++#if 0 /* reserved */
 +static inline void vfsub_file_accessed(struct file *h_file)
 +{
 +      file_accessed(h_file);
 +      vfsub_update_h_iattr(&h_file->f_path, /*did*/NULL); /*ignore*/
 +}
++#endif
 +
 +static inline void vfsub_touch_atime(struct vfsmount *h_mnt,
 +                                   struct dentry *h_dentry)
@@ -30734,7 +30411,7 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 +static inline int vfsub_update_time(struct inode *h_inode, struct timespec *ts,
 +                                  int flags)
 +{
-+      return update_time(h_inode, ts, flags);
++      return generic_update_time(h_inode, ts, flags);
 +      /* no vfsub_update_h_iattr() since we don't have struct path */
 +}
 +
@@ -30772,34 +30449,6 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 +
 +/* ---------------------------------------------------------------------- */
 +
-+/* dirty workaround for strict type of fmode_t */
-+union vfsub_fmu {
-+      fmode_t fm;
-+      unsigned int ui;
-+};
-+
-+static inline unsigned int vfsub_fmode_to_uint(fmode_t fm)
-+{
-+      union vfsub_fmu u = {
-+              .fm = fm
-+      };
-+
-+      BUILD_BUG_ON(sizeof(u.fm) != sizeof(u.ui));
-+
-+      return u.ui;
-+}
-+
-+static inline fmode_t vfsub_uint_to_fmode(unsigned int ui)
-+{
-+      union vfsub_fmu u = {
-+              .ui = ui
-+      };
-+
-+      return u.fm;
-+}
-+
-+/* ---------------------------------------------------------------------- */
-+
 +int vfsub_sio_mkdir(struct inode *dir, struct path *path, int mode);
 +int vfsub_sio_rmdir(struct inode *dir, struct path *path);
 +int vfsub_sio_notify_change(struct path *path, struct iattr *ia,
@@ -30838,7 +30487,7 @@ diff -urN /usr/share/empty/fs/aufs/vfsub.h linux/fs/aufs/vfsub.h
 +#endif /* __AUFS_VFSUB_H__ */
 diff -urN /usr/share/empty/fs/aufs/wbr_policy.c linux/fs/aufs/wbr_policy.c
 --- /usr/share/empty/fs/aufs/wbr_policy.c      1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/wbr_policy.c 2015-03-27 21:56:35.470128334 +0100
++++ linux/fs/aufs/wbr_policy.c 2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,765 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -31607,7 +31256,7 @@ diff -urN /usr/share/empty/fs/aufs/wbr_policy.c linux/fs/aufs/wbr_policy.c
 +};
 diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
 --- /usr/share/empty/fs/aufs/whout.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/whout.c      2015-03-27 21:56:35.470128334 +0100
++++ linux/fs/aufs/whout.c      2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,1064 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -31695,7 +31344,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
 +              goto out_wh; /* success */
 +
 +      err = 1;
-+      if (S_ISREG(wh_dentry->d_inode->i_mode))
++      if (d_is_reg(wh_dentry))
 +              goto out_wh; /* success */
 +
 +      err = -EIO;
@@ -31868,7 +31517,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
 +              err = PTR_ERR(h_path.dentry);
 +      else {
 +              if (h_path.dentry->d_inode
-+                  && S_ISREG(h_path.dentry->d_inode->i_mode))
++                  && d_is_reg(h_path.dentry))
 +                      err = do_unlink_wh(h_parent->d_inode, &h_path);
 +              dput(h_path.dentry);
 +      }
@@ -32025,7 +31674,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
 +      if (!base[AuBrWh_BASE].dentry->d_inode) {
 +              h_path->dentry = base[AuBrWh_BASE].dentry;
 +              err = vfsub_create(h_dir, h_path, WH_MASK, /*want_excl*/true);
-+      } else if (S_ISREG(base[AuBrWh_BASE].dentry->d_inode->i_mode))
++      } else if (d_is_reg(base[AuBrWh_BASE].dentry))
 +              err = 0;
 +      else
 +              pr_err("unknown %pd2 exists\n", base[AuBrWh_BASE].dentry);
@@ -32675,7 +32324,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.c linux/fs/aufs/whout.c
 +}
 diff -urN /usr/share/empty/fs/aufs/whout.h linux/fs/aufs/whout.h
 --- /usr/share/empty/fs/aufs/whout.h   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/whout.h      2015-03-27 21:56:35.470128334 +0100
++++ linux/fs/aufs/whout.h      2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,85 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -32707,9 +32356,9 @@ diff -urN /usr/share/empty/fs/aufs/whout.h linux/fs/aufs/whout.h
 +
 +/* whout.c */
 +int au_wh_name_alloc(struct qstr *wh, const struct qstr *name);
-+struct au_branch;
 +int au_wh_test(struct dentry *h_parent, struct qstr *wh_name, int try_sio);
 +int au_diropq_test(struct dentry *h_dentry);
++struct au_branch;
 +struct dentry *au_whtmp_lkup(struct dentry *h_parent, struct au_branch *br,
 +                           struct qstr *prefix);
 +int au_whtmp_ren(struct dentry *h_dentry, struct au_branch *br);
@@ -32764,7 +32413,7 @@ diff -urN /usr/share/empty/fs/aufs/whout.h linux/fs/aufs/whout.h
 +#endif /* __AUFS_WHOUT_H__ */
 diff -urN /usr/share/empty/fs/aufs/wkq.c linux/fs/aufs/wkq.c
 --- /usr/share/empty/fs/aufs/wkq.c     1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/wkq.c        2015-03-27 21:56:35.470128334 +0100
++++ linux/fs/aufs/wkq.c        2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,213 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -32981,7 +32630,7 @@ diff -urN /usr/share/empty/fs/aufs/wkq.c linux/fs/aufs/wkq.c
 +}
 diff -urN /usr/share/empty/fs/aufs/wkq.h linux/fs/aufs/wkq.h
 --- /usr/share/empty/fs/aufs/wkq.h     1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/wkq.h        2015-03-27 21:56:35.470128334 +0100
++++ linux/fs/aufs/wkq.h        2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,91 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -33076,8 +32725,8 @@ diff -urN /usr/share/empty/fs/aufs/wkq.h linux/fs/aufs/wkq.h
 +#endif /* __AUFS_WKQ_H__ */
 diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 --- /usr/share/empty/fs/aufs/xattr.c   1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/xattr.c      2015-03-27 21:56:35.470128334 +0100
-@@ -0,0 +1,334 @@
++++ linux/fs/aufs/xattr.c      2015-04-13 15:10:20.790157026 +0200
+@@ -0,0 +1,338 @@
 +/*
 + * Copyright (C) 2014-2015 Junjiro R. Okajima
 + *
@@ -33142,7 +32791,8 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +static const int au_xattr_out_of_list = AuBrAttr_ICEX_OTH << 1;
 +
 +static int au_do_cpup_xattr(struct dentry *h_dst, struct dentry *h_src,
-+                          char *name, char **buf, unsigned int ignore_flags)
++                          char *name, char **buf, unsigned int ignore_flags,
++                          unsigned int verbose)
 +{
 +      int err;
 +      ssize_t ssz;
@@ -33165,7 +32815,8 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +      err = vfsub_setxattr(h_dst, name, *buf, ssz, /*flags*/0);
 +      mutex_lock_nested(&h_idst->i_mutex, AuLsc_I_CHILD2);
 +      if (unlikely(err)) {
-+              AuDbg("%s, err %d\n", name, err);
++              if (verbose || au_debug_test())
++                      pr_err("%s, err %d\n", name, err);
 +              err = au_xattr_ignore(err, name, ignore_flags);
 +      }
 +
@@ -33173,7 +32824,8 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +      return err;
 +}
 +
-+int au_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, int ignore_flags)
++int au_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, int ignore_flags,
++                unsigned int verbose)
 +{
 +      int err, unlocked, acl_access, acl_default;
 +      ssize_t ssz;
@@ -33181,7 +32833,7 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +      char *value, *p, *o, *e;
 +
 +      /* try stopping to update the source inode while we are referencing */
-+      /* there should not be the parent-child relation ship between them */
++      /* there should not be the parent-child relationship between them */
 +      h_isrc = h_src->d_inode;
 +      h_idst = h_dst->d_inode;
 +      mutex_unlock(&h_idst->i_mutex);
@@ -33228,7 +32880,8 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +              acl_default |= !strncmp(p, XATTR_NAME_POSIX_ACL_DEFAULT,
 +                                      sizeof(XATTR_NAME_POSIX_ACL_DEFAULT)
 +                                      - 1);
-+              err = au_do_cpup_xattr(h_dst, h_src, p, &value, ignore_flags);
++              err = au_do_cpup_xattr(h_dst, h_src, p, &value, ignore_flags,
++                                     verbose);
 +              p += strlen(p) + 1;
 +      }
 +      AuTraceErr(err);
@@ -33236,13 +32889,13 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +      if (!err && !acl_access) {
 +              err = au_do_cpup_xattr(h_dst, h_src,
 +                                     XATTR_NAME_POSIX_ACL_ACCESS, &value,
-+                                     ignore_flags);
++                                     ignore_flags, verbose);
 +              AuTraceErr(err);
 +      }
 +      if (!err && !acl_default) {
 +              err = au_do_cpup_xattr(h_dst, h_src,
 +                                     XATTR_NAME_POSIX_ACL_DEFAULT, &value,
-+                                     ignore_flags);
++                                     ignore_flags, verbose);
 +              AuTraceErr(err);
 +      }
 +
@@ -33414,7 +33067,7 @@ diff -urN /usr/share/empty/fs/aufs/xattr.c linux/fs/aufs/xattr.c
 +#endif
 diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
 --- /usr/share/empty/fs/aufs/xino.c    1970-01-01 01:00:00.000000000 +0100
-+++ linux/fs/aufs/xino.c       2015-03-27 21:56:35.470128334 +0100
++++ linux/fs/aufs/xino.c       2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,1318 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -34736,7 +34389,7 @@ diff -urN /usr/share/empty/fs/aufs/xino.c linux/fs/aufs/xino.c
 +}
 diff -urN /usr/share/empty/include/uapi/linux/aufs_type.h linux/include/uapi/linux/aufs_type.h
 --- /usr/share/empty/include/uapi/linux/aufs_type.h    1970-01-01 01:00:00.000000000 +0100
-+++ linux/include/uapi/linux/aufs_type.h       2015-03-27 21:56:35.470128334 +0100
++++ linux/include/uapi/linux/aufs_type.h       2015-04-13 15:10:20.790157026 +0200
 @@ -0,0 +1,419 @@
 +/*
 + * Copyright (C) 2005-2015 Junjiro R. Okajima
@@ -34779,7 +34432,7 @@ diff -urN /usr/share/empty/include/uapi/linux/aufs_type.h linux/include/uapi/lin
 +
 +#include <linux/limits.h>
 +
-+#define AUFS_VERSION  "3.19-20150323"
++#define AUFS_VERSION  "3.x-rcN-20150406"
 +
 +/* todo? move this to linux-2.6.19/include/magic.h */
 +#define AUFS_SUPER_MAGIC      ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
@@ -34934,10 +34587,10 @@ diff -urN /usr/share/empty/include/uapi/linux/aufs_type.h linux/include/uapi/lin
 +                             "+" AUFS_BRATTR_COO_REG          \
 +                             "+" AUFS_BRATTR_FHSM             \
 +                             "+" AUFS_BRATTR_UNPIN            \
-+                             "+" AUFS_BRATTR_ICEX_SEC \
-+                             "+" AUFS_BRATTR_ICEX_SYS \
-+                             "+" AUFS_BRATTR_ICEX_USR \
-+                             "+" AUFS_BRATTR_ICEX_OTH \
++                             "+" AUFS_BRATTR_ICEX_SEC         \
++                             "+" AUFS_BRATTR_ICEX_SYS         \
++                             "+" AUFS_BRATTR_ICEX_USR         \
++                             "+" AUFS_BRATTR_ICEX_OTH         \
 +                             "+" AUFS_BRWATTR_NLWH)
 +
 +typedef struct {
@@ -35157,13 +34810,13 @@ diff -urN /usr/share/empty/include/uapi/linux/aufs_type.h linux/include/uapi/lin
 +#define AUFS_CTL_FHSM_FD      _IOW(AuCtlType, AuCtl_FHSM_FD, int)
 +
 +#endif /* __AUFS_TYPE_H__ */
-aufs3.19 loopback patch
+aufs3.x-rcN loopback patch
 
 diff --git a/drivers/block/loop.c b/drivers/block/loop.c
-index 30efd68..2a9b789 100644
+index a0da519..ffef6c0 100644
 --- a/drivers/block/loop.c
 +++ b/drivers/block/loop.c
-@@ -514,7 +514,7 @@ out:
+@@ -471,7 +471,7 @@ static int do_req_filebacked(struct loop_device *lo, struct request *rq)
  }
  
  struct switch_request {
@@ -35172,7 +34825,15 @@ index 30efd68..2a9b789 100644
        struct completion wait;
  };
  
-@@ -576,7 +576,8 @@ static int loop_thread(void *data)
+@@ -491,6 +491,7 @@ static void do_loop_switch(struct loop_device *lo, struct switch_request *p)
+       mapping = file->f_mapping;
+       mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask);
+       lo->lo_backing_file = file;
++      lo->lo_backing_virt_file = p->virt_file;
+       lo->lo_blocksize = S_ISBLK(mapping->host->i_mode) ?
+               mapping->host->i_bdev->bd_block_size : PAGE_SIZE;
+       lo->old_gfp_mask = mapping_gfp_mask(mapping);
+@@ -502,11 +503,13 @@ static void do_loop_switch(struct loop_device *lo, struct switch_request *p)
   * First it needs to flush existing IO, it does this by sending a magic
   * BIO down the pipe. The completion of this BIO does the actual switch.
   */
@@ -35181,47 +34842,31 @@ index 30efd68..2a9b789 100644
 +                     struct file *virt_file)
  {
        struct switch_request w;
-       struct bio *bio = bio_alloc(GFP_KERNEL, 0);
-@@ -584,6 +585,7 @@ static int loop_switch(struct loop_device *lo, struct file *file)
-               return -ENOMEM;
-       init_completion(&w.wait);
        w.file = file;
 +      w.virt_file = virt_file;
-       bio->bi_private = &w;
-       bio->bi_bdev = NULL;
-       loop_make_request(lo->lo_queue, bio);
-@@ -600,7 +602,7 @@ static int loop_flush(struct loop_device *lo)
-       if (!lo->lo_thread)
-               return 0;
  
+       /* freeze queue and wait for completion of scheduled requests */
+       blk_mq_freeze_queue(lo->lo_queue);
+@@ -525,7 +528,16 @@ static int loop_switch(struct loop_device *lo, struct file *file)
+  */
+ static int loop_flush(struct loop_device *lo)
+ {
 -      return loop_switch(lo, NULL);
 +      return loop_switch(lo, NULL, NULL);
- }
- /*
-@@ -619,6 +621,7 @@ static void do_loop_switch(struct loop_device *lo, struct switch_request *p)
-       mapping = file->f_mapping;
-       mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask);
-       lo->lo_backing_file = file;
-+      lo->lo_backing_virt_file = p->virt_file;
-       lo->lo_blocksize = S_ISBLK(mapping->host->i_mode) ?
-               mapping->host->i_bdev->bd_block_size : PAGE_SIZE;
-       lo->old_gfp_mask = mapping_gfp_mask(mapping);
-@@ -627,6 +630,13 @@ out:
-       complete(&p->wait);
- }
++}
++
 +static struct file *loop_real_file(struct file *file)
 +{
 +      struct file *f = NULL;
++
 +      if (file->f_path.dentry->d_sb->s_op->real_loop)
 +              f = file->f_path.dentry->d_sb->s_op->real_loop(file);
 +      return f;
-+}
+ }
  
  /*
-  * loop_change_fd switched the backing store of a loopback device to
-@@ -640,6 +650,7 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
+@@ -540,6 +552,7 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
                          unsigned int arg)
  {
        struct file     *file, *old_file;
@@ -35229,7 +34874,7 @@ index 30efd68..2a9b789 100644
        struct inode    *inode;
        int             error;
  
-@@ -656,9 +667,16 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
+@@ -556,9 +569,16 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
        file = fget(arg);
        if (!file)
                goto out;
@@ -35246,7 +34891,7 @@ index 30efd68..2a9b789 100644
  
        error = -EINVAL;
  
-@@ -670,17 +688,21 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
+@@ -570,17 +590,21 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
                goto out_putf;
  
        /* and ... switch */
@@ -35269,7 +34914,7 @@ index 30efd68..2a9b789 100644
   out:
        return error;
  }
-@@ -841,7 +863,7 @@ static void loop_config_discard(struct loop_device *lo)
+@@ -741,7 +765,7 @@ static void loop_config_discard(struct loop_device *lo)
  static int loop_set_fd(struct loop_device *lo, fmode_t mode,
                       struct block_device *bdev, unsigned int arg)
  {
@@ -35278,7 +34923,7 @@ index 30efd68..2a9b789 100644
        struct inode    *inode;
        struct address_space *mapping;
        unsigned lo_blocksize;
-@@ -856,6 +878,12 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode,
+@@ -756,6 +780,12 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode,
        file = fget(arg);
        if (!file)
                goto out;
@@ -35291,7 +34936,7 @@ index 30efd68..2a9b789 100644
  
        error = -EBUSY;
        if (lo->lo_state != Lo_unbound)
-@@ -904,6 +932,7 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode,
+@@ -804,6 +834,7 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode,
        lo->lo_device = bdev;
        lo->lo_flags = lo_flags;
        lo->lo_backing_file = file;
@@ -35299,16 +34944,8 @@ index 30efd68..2a9b789 100644
        lo->transfer = transfer_none;
        lo->ioctl = NULL;
        lo->lo_sizelimit = 0;
-@@ -948,6 +977,7 @@ out_clr:
-       lo->lo_thread = NULL;
-       lo->lo_device = NULL;
-       lo->lo_backing_file = NULL;
-+      lo->lo_backing_virt_file = NULL;
-       lo->lo_flags = 0;
-       set_capacity(lo->lo_disk, 0);
-       invalidate_bdev(bdev);
-@@ -957,6 +987,8 @@ out_clr:
-       lo->lo_state = Lo_unbound;
+@@ -835,6 +866,8 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode,
   out_putf:
        fput(file);
 +      if (virt_file)
@@ -35316,7 +34953,7 @@ index 30efd68..2a9b789 100644
   out:
        /* This is safe: open() is still holding a reference. */
        module_put(THIS_MODULE);
-@@ -1003,6 +1035,7 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
+@@ -881,6 +914,7 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
  static int loop_clr_fd(struct loop_device *lo)
  {
        struct file *filp = lo->lo_backing_file;
@@ -35324,15 +34961,15 @@ index 30efd68..2a9b789 100644
        gfp_t gfp = lo->old_gfp_mask;
        struct block_device *bdev = lo->lo_device;
  
-@@ -1036,6 +1069,7 @@ static int loop_clr_fd(struct loop_device *lo)
+@@ -909,6 +943,7 @@ static int loop_clr_fd(struct loop_device *lo)
        spin_lock_irq(&lo->lo_lock);
+       lo->lo_state = Lo_rundown;
        lo->lo_backing_file = NULL;
 +      lo->lo_backing_virt_file = NULL;
        spin_unlock_irq(&lo->lo_lock);
  
        loop_release_xfer(lo);
-@@ -1078,6 +1112,8 @@ static int loop_clr_fd(struct loop_device *lo)
+@@ -950,6 +985,8 @@ static int loop_clr_fd(struct loop_device *lo)
         * bd_mutex which is usually taken before lo_ctl_mutex.
         */
        fput(filp);
@@ -35342,10 +34979,10 @@ index 30efd68..2a9b789 100644
  }
  
 diff --git a/drivers/block/loop.h b/drivers/block/loop.h
-index 90df5d6..cb91822 100644
+index 301c27f..df84aa0 100644
 --- a/drivers/block/loop.h
 +++ b/drivers/block/loop.h
-@@ -44,7 +44,7 @@ struct loop_device {
+@@ -46,7 +46,7 @@ struct loop_device {
        int             (*ioctl)(struct loop_device *, int cmd, 
                                 unsigned long arg); 
  
@@ -35417,10 +35054,10 @@ index 6d9864d..3322557 100644
  
  #endif /* __KERNEL__ */
 diff --git a/fs/aufs/super.c b/fs/aufs/super.c
-index 9acda0e..bb80e3b 100644
+index 98dc945..5da1392 100644
 --- a/fs/aufs/super.c
 +++ b/fs/aufs/super.c
-@@ -812,7 +812,10 @@ static const struct super_operations aufs_sop = {
+@@ -810,7 +810,10 @@ static const struct super_operations aufs_sop = {
        .statfs         = aufs_statfs,
        .put_super      = aufs_put_super,
        .sync_fs        = aufs_sync_fs,
@@ -35433,13 +35070,13 @@ index 9acda0e..bb80e3b 100644
  
  /* ---------------------------------------------------------------------- */
 diff --git a/include/linux/fs.h b/include/linux/fs.h
-index f634198..bfecf84 100644
+index b4d71b5..328c21d 100644
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
-@@ -1620,6 +1620,10 @@ struct super_operations {
-       int (*bdev_try_to_free_page)(struct super_block*, struct page*, gfp_t);
-       long (*nr_cached_objects)(struct super_block *, int);
-       long (*free_cached_objects)(struct super_block *, long, int);
+@@ -1655,6 +1655,10 @@ struct super_operations {
+                                 struct shrink_control *);
+       long (*free_cached_objects)(struct super_block *,
+                                   struct shrink_control *);
 +#if defined(CONFIG_BLK_DEV_LOOP) ||  defined(CONFIG_BLK_DEV_LOOP_MODULE)
 +      /* and aufs */
 +      struct file *(*real_loop)(struct file *);
diff --git a/kernel-btrfs_deadlock_mount.patch b/kernel-btrfs_deadlock_mount.patch
deleted file mode 100644 (file)
index 9430d58..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-From 9c4f61f01d269815bb7c37be3ede59c5587747c6 Mon Sep 17 00:00:00 2001
-From: David Sterba <dsterba@suse.cz>
-Date: Fri, 2 Jan 2015 19:12:57 +0100
-Subject: btrfs: simplify insert_orphan_item
-
-We can search and add the orphan item in one go,
-btrfs_insert_orphan_item will find out if the item already exists.
-
-Signed-off-by: David Sterba <dsterba@suse.cz>
-
-diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
-index 5be45c1..25a1c36 100644
---- a/fs/btrfs/tree-log.c
-+++ b/fs/btrfs/tree-log.c
-@@ -1254,21 +1254,13 @@ out:
- }
- static int insert_orphan_item(struct btrfs_trans_handle *trans,
--                            struct btrfs_root *root, u64 offset)
-+                            struct btrfs_root *root, u64 ino)
- {
-       int ret;
--      struct btrfs_path *path;
--
--      path = btrfs_alloc_path();
--      if (!path)
--              return -ENOMEM;
--      ret = btrfs_find_item(root, path, BTRFS_ORPHAN_OBJECTID,
--                      offset, BTRFS_ORPHAN_ITEM_KEY, NULL);
--      if (ret > 0)
--              ret = btrfs_insert_orphan_item(trans, root, offset);
--
--      btrfs_free_path(path);
-+      ret = btrfs_insert_orphan_item(trans, root, ino);
-+      if (ret == -EEXIST)
-+              ret = 0;
-       return ret;
- }
--- 
-cgit v0.10.2
-
index 086f5f0bf5e6c7ab50833f9d76b681b8206a020d..04760d23de903d959417523b1eeb6b7c881bbf29 100644 (file)
@@ -1385,15 +1385,14 @@ index 3d13874..9842f21 100644
  
  #include "net-sysfs.h"
  
-@@ -2595,7 +2598,12 @@ static int xmit_one(struct sk_buff *skb, struct net_device *dev,
+@@ -2618,7 +2618,11 @@ static int xmit_one(struct sk_buff *skb,
        unsigned int len;
        int rc;
  
 +#if defined(CONFIG_IMQ) || defined(CONFIG_IMQ_MODULE)
-+      if (!list_empty(&ptype_all) &&
-+                              !(skb->imq_flags & IMQ_F_ENQUEUE))
++      if ((!list_empty(&ptype_all) || !list_empty(&dev->ptype_all)) && !(skb->imq_flags & IMQ_F_ENQUEUE))
 +#else
-       if (!list_empty(&ptype_all))
+       if (!list_empty(&ptype_all) || !list_empty(&dev->ptype_all))
 +#endif
                dev_queue_xmit_nit(skb, dev);
  
index 7e445d55bf4d2a9d4eae287d0fbab8a2565e6a6b..4d313b7bd0fe996129b92e34d653ecb3310e64a1 100644 (file)
@@ -16,6 +16,7 @@ KEXEC_VERIFY_SIG all=n
 KVM_DEBUG_FS all=n
 KVM_DEVICE_ASSIGNMENT all=y
 PHYSICAL_ALIGN all=0x1000000
+X86_AMD_PLATFORM_DEVICE all=y
 X86_DEBUG_STATIC_CPU_HAS all=n
 X86_SYSFB all=y
 XEN_PVH all=y
@@ -189,6 +190,7 @@ CRYPTO_DRBG_HASH all=y
 CRYPTO_DRBG_CTR all=y
 CRYPTO_USER_API_HASH all=m
 CRYPTO_USER_API_SKCIPHER all=m
+CRYPTO_USER_API_RNG all=m
 #- file drivers/crypto/Kconfig goes here
 #- file crypto/asymmetric_keys/Kconfig goes here
 
@@ -470,7 +472,7 @@ BLK_DEV_SX8 all=m
 BLK_DEV_RAM all=y
 BLK_DEV_RAM_COUNT all=16
 BLK_DEV_RAM_SIZE all=16384
-BLK_DEV_XIP all=y
+BLK_DEV_RAM_DAX all=y
 CDROM_PKTCDVD all=m
 CDROM_PKTCDVD_BUFFERS all=8
 CDROM_PKTCDVD_WCACHE all=y
@@ -563,6 +565,7 @@ OMAP_OCP2SCP all=m
 #- *** FILE: drivers/char/Kconfig ***
 #-
 #- file drivers/tty/Kconfig goes here
+DEVMEM all=y
 DEVKMEM all=y
 SGI_SNSC ia64=y
 SGI_TIOCX ia64=y
@@ -674,8 +677,9 @@ TCG_TIS_I2C_NUVOTON all=m
 TCG_NSC all=m
 TCG_ATMEL all=m
 TCG_INFINEON all=m
-TCG_ST33_I2C all=m
+TCG_TIS_I2C_ST33 all=m
 TCG_XEN all=m
+TCG_CRB all=m
 
 #-
 #- *** FILE: drivers/char/xillybus/Kconfig ***
@@ -689,6 +693,7 @@ XILLYBUS_PCIE all=m
 COMMON_CLK_WM831X all=m
 #- file drivers/clk/versatile/Kconfig goes here
 COMMON_CLK_SI5351 all=m
+COMMON_CLK_CDCE706 all=m
 #- file drivers/clk/qcom/Kconfig goes here
 #- file drivers/clk/bcm/Kconfig goes here
 #- file drivers/clk/mvebu/Kconfig goes here
@@ -777,6 +782,12 @@ DEVFREQ_GOV_PERFORMANCE all=y
 DEVFREQ_GOV_POWERSAVE all=y
 DEVFREQ_GOV_USERSPACE all=y
 #- DEVFREQ Drivers
+#- file drivers/devfreq/event/Kconfig goes here
+
+#-
+#- *** FILE: drivers/devfreq/event/Kconfig ***
+#-
+PM_DEVFREQ_EVENT all=y
 
 #-
 #- *** FILE: drivers/dma/Kconfig ***
@@ -989,6 +1000,7 @@ DRM_SAVAGE all=m
 #- file drivers/gpu/drm/mgag200/Kconfig goes here
 #- file drivers/gpu/drm/cirrus/Kconfig goes here
 #- file drivers/gpu/drm/armada/Kconfig goes here
+#- file drivers/gpu/drm/atmel-hlcdc/Kconfig goes here
 #- file drivers/gpu/drm/rcar-du/Kconfig goes here
 #- file drivers/gpu/drm/shmobile/Kconfig goes here
 #- file drivers/gpu/drm/omapdrm/Kconfig goes here
@@ -1106,6 +1118,7 @@ HID_APPLE all=m
 HID_APPLEIR all=m
 HID_AUREAL all=m
 HID_BELKIN all=m
+HID_BETOP_FF all=m
 HID_CHERRY all=m
 HID_CHICONY all=m
 HID_PRODIKEYS all=m
@@ -1587,6 +1600,8 @@ IIO_ST_ACCEL_3AXIS all=m
 KXSD9 all=m
 MMA8452 all=m
 KXCJK1013 all=m
+MMA9551 all=m
+MMA9553 all=m
 
 #-
 #- *** FILE: drivers/iio/adc/Kconfig ***
@@ -1600,6 +1615,7 @@ AD7793 all=m
 AD7887 all=m
 AD7923 all=m
 AD799X all=m
+CC10001_ADC all=m
 MAX1027 all=m
 MAX1363 all=m
 MCP320X all=m
@@ -1607,6 +1623,7 @@ MCP3422 all=m
 MEN_Z188_ADC all=m
 NAU7802 all=m
 QCOM_SPMI_IADC all=m
+QCOM_SPMI_VADC all=m
 TI_ADC081C all=m
 TI_ADC128S052 all=m
 TI_AM335X_ADC all=m
@@ -1617,6 +1634,12 @@ VIPERBOARD_ADC all=m
 #-
 AD8366 all=m
 
+#-
+#- *** FILE: drivers/iio/common/ssp_sensors/Kconfig ***
+#-
+IIO_SSP_SENSORS_COMMONS all=m
+IIO_SSP_SENSORHUB all=m
+
 #-
 #- *** FILE: drivers/iio/dac/Kconfig ***
 #-
@@ -1668,6 +1691,7 @@ SI7020 all=m
 #-
 ADIS16400 all=m
 ADIS16480 all=m
+KMX61 all=m
 #- file drivers/iio/imu/inv_mpu6050/Kconfig goes here
 
 #-
@@ -1682,11 +1706,13 @@ ADJD_S311 all=m
 AL3320A all=m
 APDS9300 all=m
 CM32181 all=m
+CM3232 all=m
 CM36651 all=m
 GP2AP020A00F all=m
 ISL29125 all=m
 HID_SENSOR_ALS all=m
 HID_SENSOR_PROX all=m
+JSA1212 all=m
 SENSORS_LM3533 all=m
 LTR501 all=m
 TCS3414 all=m
@@ -1724,6 +1750,7 @@ T5403 all=m
 #- *** FILE: drivers/iio/proximity/Kconfig ***
 #-
 AS3935 all=m
+SX9500 all=m
 
 #-
 #- *** FILE: drivers/iio/temperature/Kconfig ***
@@ -1967,6 +1994,7 @@ INPUT_AD714X_I2C all=m
 INPUT_AD714X_SPI all=m
 INPUT_ARIZONA_HAPTICS all=m
 INPUT_BMA150 all=m
+INPUT_E3X0_BUTTON all=m
 INPUT_PCSPKR all=m
 INPUT_SPARCSPKR sparc64=m
 INPUT_MC13783_PWRBUTTON all=m
@@ -1985,7 +2013,9 @@ INPUT_KXTJ9_POLLED_MODE all=y
 INPUT_POWERMATE all=m sparc=n
 INPUT_YEALINK all=m sparc=n
 INPUT_CM109 all=m
+INPUT_REGULATOR_HAPTIC all=m
 INPUT_RETU_PWRBUTTON all=m
+INPUT_TPS65218_PWRBUTTON all=m
 INPUT_TWL4030_PWRBUTTON powerpc=m
 INPUT_UINPUT all=m sparc=n
 INPUT_PCF50633_PMU all=m
@@ -2311,6 +2341,7 @@ ISDN_DRV_SC all=m
 NEW_LEDS all=y
 #* ADB_PMU_LED forces it to 'y'
 LEDS_CLASS all=y
+LEDS_CLASS_FLASH all=m
 #- LED drivers
 LEDS_LM3530 all=m
 LEDS_LM3533 all=m
@@ -2403,6 +2434,7 @@ SENSORS_AMS_I2C ppc=y
 #-
 MAILBOX all=y
 PCC all=y
+ALTERA_MBOX all=m
 
 #-
 #- *** FILE: drivers/mcb/Kconfig ***
@@ -2498,7 +2530,6 @@ MEDIA_ATTACH all=y
 #-
 #- common driver options
 VIDEO_CX2341X all=m
-VIDEO_BTCX all=m sparc=
 VIDEO_TVEEPROM all=m
 #- file drivers/media/common/b2c2/Kconfig goes here
 #- file drivers/media/common/saa7146/Kconfig goes here
@@ -2871,6 +2902,7 @@ VIDEO_TIMBERDALE all=m
 #- file drivers/media/platform/soc_camera/Kconfig goes here
 #- file drivers/media/platform/exynos4-is/Kconfig goes here
 #- file drivers/media/platform/s5p-tv/Kconfig goes here
+#- file drivers/media/platform/am437x/Kconfig goes here
 V4L_MEM2MEM_DRIVERS all=y
 VIDEO_MEM2MEM_DEINTERLACE all=m
 VIDEO_SH_VEU all=m
@@ -3191,6 +3223,7 @@ USB_GSPCA_STV0680 all=m
 USB_GSPCA_SUNPLUS all=m
 USB_GSPCA_T613 all=m
 USB_GSPCA_TOPRO all=m
+USB_GSPCA_TOUPTEK all=m
 USB_GSPCA_TV8532 all=m
 USB_GSPCA_VC032X all=m
 USB_GSPCA_VICAM all=m
@@ -3357,20 +3390,6 @@ FUSION_CTL all=m sparc=n
 FUSION_LAN all=m sparc=n
 FUSION_LOGGING all=y sparc=n
 
-#-
-#- *** FILE: drivers/message/i2o/Kconfig ***
-#-
-I2O all=m sparc=n
-I2O_LCT_NOTIFY_ON_CHANGES all=y
-I2O_EXT_ADAPTEC all=y
-I2O_EXT_ADAPTEC_DMA64 all=y
-I2O_CONFIG all=m sparc64=n
-I2O_CONFIG_OLD_IOCTL all=y x86_64=n
-I2O_BUS all=m
-I2O_BLOCK all=m
-I2O_SCSI all=m
-I2O_PROC all=m
-
 #-
 #- *** FILE: drivers/mfd/Kconfig ***
 #-
@@ -3756,6 +3775,7 @@ MTD_NAND_PASEMI ppc64=m
 MTD_NAND_NANDSIM all=m ppc=n ppc64=n sparc=n
 MTD_NAND_PLATFORM all=m sparc=n
 MTD_NAND_FSL_ELBC ppc=m ppc64=m
+MTD_NAND_HISI504 all=m
 
 #-
 #- *** FILE: drivers/mtd/onenand/Kconfig ***
@@ -4094,6 +4114,8 @@ PCNET32 all=m
 PCMCIA_NMCLAN all=m
 NI65 alpha=m i386=m
 SUNLANCE sparc=m sparc64=m
+AMD_XGBE all=m
+AMD_XGBE_DCB all=y
 
 #-
 #- *** FILE: drivers/net/ethernet/apm/xgene/Kconfig ***
@@ -4274,6 +4296,7 @@ IGB_DCA all=y
 IGBVF all=m
 IXGB all=m sparc=n
 IXGBE all=m
+IXGBE_VXLAN all=y
 IXGBE_HWMON all=y
 IXGBE_DCA all=y
 IXGBE_DCB all=y
@@ -4498,6 +4521,7 @@ TEHUTI all=m
 #- *** FILE: drivers/net/ethernet/ti/Kconfig ***
 #-
 NET_VENDOR_TI all=y
+TI_CPSW_ALE all=m
 TLAN all=m sparc=n
 
 #-
@@ -4620,6 +4644,7 @@ PHYLIB all=y
 #- MII PHY device drivers
 AT803X_PHY all=m
 AMD_PHY all=m
+AMD_XGBE_PHY all=m
 MARVELL_PHY all=m
 DAVICOM_PHY all=m
 QSEMI_PHY all=m
@@ -5432,6 +5457,7 @@ CHARGER_BQ2415X all=m
 CHARGER_BQ24190 all=m
 CHARGER_BQ24735 all=m
 CHARGER_SMB347 all=m
+BATTERY_GAUGE_LTC2941 all=m
 AB8500_BM all=n
 BATTERY_GOLDFISH all=m
 #- file drivers/power/reset/Kconfig goes here
@@ -5446,6 +5472,7 @@ POWER_AVS all=y
 #- *** FILE: drivers/power/reset/Kconfig ***
 #-
 POWER_RESET all=y
+POWER_RESET_RESTART all=n
 
 #-
 #- *** FILE: drivers/powercap/Kconfig ***
@@ -5592,6 +5619,7 @@ RTC_INTF_DEV all=y
 RTC_INTF_DEV_UIE_EMUL all=n
 RTC_DRV_TEST all=m
 #- I2C RTC drivers
+RTC_DRV_ABB5ZES3 all=m
 RTC_DRV_DS1307 all=m
 RTC_DRV_DS1374 all=m
 RTC_DRV_DS1374_WDT all=y
@@ -5637,6 +5665,14 @@ RTC_DRV_CMOS all=y
 RTC_DRV_DS1286 all=m
 RTC_DRV_DS1511 all=m
 RTC_DRV_DS1553 all=m
+RTC_DRV_DS1685_FAMILY all=m
+RTC_DRV_DS1685 all=y
+RTC_DRV_DS1689 all=n
+RTC_DRV_DS17285 all=n
+RTC_DRV_DS17485 all=n
+RTC_DRV_DS17885 all=n
+RTC_DS1685_PROC_REGS all=n
+RTC_DS1685_SYSFS_REGS all=y
 RTC_DRV_DS1742 all=m
 RTC_DRV_DS2404 all=m
 RTC_DRV_DA9052 all=m
@@ -5983,6 +6019,7 @@ SPI_MASTER all=y
 SPI_ALTERA all=m
 SPI_BITBANG all=m
 SPI_BUTTERFLY all=m
+SPI_DLN2 all=m
 SPI_GPIO all=m
 SPI_LM70_LLP all=m
 SPI_MPC52xx_PSC ppc=m
@@ -6031,17 +6068,16 @@ STAGING all=y
 #- file drivers/staging/rtl8188eu/Kconfig goes here
 #- file drivers/staging/rtl8723au/Kconfig goes here
 #- file drivers/staging/rts5208/Kconfig goes here
-#- file drivers/staging/line6/Kconfig goes here
 #- file drivers/staging/octeon/Kconfig goes here
 #- file drivers/staging/octeon-usb/Kconfig goes here
 #- file drivers/staging/vt6655/Kconfig goes here
 #- file drivers/staging/vt6656/Kconfig goes here
 #- file drivers/staging/iio/Kconfig goes here
+#- file drivers/staging/sm7xxfb/Kconfig goes here
 #- file drivers/staging/xgifb/Kconfig goes here
 #- file drivers/staging/emxx_udc/Kconfig goes here
 #- file drivers/staging/ft1000/Kconfig goes here
 #- file drivers/staging/speakup/Kconfig goes here
-#- file drivers/staging/cptm1217/Kconfig goes here
 #- file drivers/staging/ste_rmi4/Kconfig goes here
 #- file drivers/staging/nvec/Kconfig goes here
 #- file drivers/staging/media/Kconfig goes here
@@ -6061,6 +6097,8 @@ STAGING all=y
 #- file drivers/staging/skein/Kconfig goes here
 #- file drivers/staging/unisys/Kconfig goes here
 #- file drivers/staging/clocking-wizard/Kconfig goes here
+#- file drivers/staging/fbtft/Kconfig goes here
+#- file drivers/staging/i2o/Kconfig goes here
 
 #-
 #- *** FILE: drivers/staging/comedi/Kconfig ***
@@ -6191,11 +6229,6 @@ COMEDI_AMPLC_PC236 all=m
 COMEDI_NI_LABPC all=m
 COMEDI_NI_TIO all=m
 
-#-
-#- *** FILE: drivers/staging/cptm1217/Kconfig ***
-#-
-TOUCHSCREEN_CLEARPAD_TM1217 all=m
-
 #-
 #- *** FILE: drivers/staging/dgap/Kconfig ***
 #-
@@ -6206,6 +6239,38 @@ DGAP all=m
 #-
 DGNC all=m
 
+#-
+#- *** FILE: drivers/staging/fbtft/Kconfig ***
+#-
+FB_TFT all=m
+FB_TFT_AGM1264K_FL all=m
+FB_TFT_BD663474 all=m
+FB_TFT_HX8340BN all=m
+FB_TFT_HX8347D all=m
+FB_TFT_HX8353D all=m
+FB_TFT_ILI9320 all=m
+FB_TFT_ILI9325 all=m
+FB_TFT_ILI9340 all=m
+FB_TFT_ILI9341 all=m
+FB_TFT_ILI9481 all=m
+FB_TFT_ILI9486 all=m
+FB_TFT_PCD8544 all=m
+FB_TFT_RA8875 all=m
+FB_TFT_S6D02A1 all=m
+FB_TFT_S6D1121 all=m
+FB_TFT_SSD1289 all=m
+FB_TFT_SSD1306 all=m
+FB_TFT_SSD1331 all=m
+FB_TFT_SSD1351 all=m
+FB_TFT_ST7735R all=m
+FB_TFT_TINYLCD all=m
+FB_TFT_TLS8204 all=m
+FB_TFT_UC1701 all=m
+FB_TFT_UPD161704 all=m
+FB_TFT_WATTEROTT all=m
+FB_FLEX all=m
+FB_TFT_FBTFT_DEVICE all=m
+
 #-
 #- *** FILE: drivers/staging/ft1000/Kconfig ***
 #-
@@ -6241,6 +6306,20 @@ WIMAX_GDM72XX_USB_PM all=y
 #-
 GS_FPGABOOT all=m
 
+#-
+#- *** FILE: drivers/staging/i2o/Kconfig ***
+#-
+I2O all=m sparc=n
+I2O_LCT_NOTIFY_ON_CHANGES all=y
+I2O_EXT_ADAPTEC all=y
+I2O_EXT_ADAPTEC_DMA64 all=y
+I2O_CONFIG all=m sparc64=n
+I2O_CONFIG_OLD_IOCTL all=y x86_64=n
+I2O_BUS all=m
+I2O_BLOCK all=m
+I2O_SCSI all=m
+I2O_PROC all=m
+
 #-
 #- *** FILE: drivers/staging/iio/Kconfig ***
 #-
@@ -6352,12 +6431,6 @@ AD2S1210 all=m
 #- Triggers - standalone
 IIO_PERIODIC_RTC_TRIGGER all=m
 
-#-
-#- *** FILE: drivers/staging/line6/Kconfig ***
-#-
-LINE6_USB all=m
-LINE6_USB_IMPULSE_RESPONSE all=n
-
 #-
 #- *** FILE: drivers/staging/lustre/lnet/Kconfig ***
 #-
@@ -6381,12 +6454,9 @@ STAGING_MEDIA all=y
 #- file drivers/staging/media/cxd2099/Kconfig goes here
 #- file drivers/staging/media/davinci_vpfe/Kconfig goes here
 #- file drivers/staging/media/dt3155v4l/Kconfig goes here
-#- file drivers/staging/media/tlg2300/Kconfig goes here
 #- file drivers/staging/media/mn88472/Kconfig goes here
 #- file drivers/staging/media/mn88473/Kconfig goes here
 #- file drivers/staging/media/omap4iss/Kconfig goes here
-#- file drivers/staging/media/parport/Kconfig goes here
-#- file drivers/staging/media/vino/Kconfig goes here
 #- file drivers/staging/media/lirc/Kconfig goes here
 
 #-
@@ -6429,25 +6499,6 @@ DVB_MN88472 all=m
 #-
 DVB_MN88473 all=m
 
-#-
-#- *** FILE: drivers/staging/media/parport/Kconfig ***
-#-
-MEDIA_PARPORT_SUPPORT all=y
-VIDEO_BWQCAM all=m
-VIDEO_CQCAM all=m
-VIDEO_PMS all=m
-VIDEO_W9966 all=m
-
-#-
-#- *** FILE: drivers/staging/media/tlg2300/Kconfig ***
-#-
-VIDEO_TLG2300 all=m
-
-#-
-#- *** FILE: drivers/staging/media/vino/Kconfig ***
-#-
-VIDEO_SAA7191 all=m
-
 #-
 #- *** FILE: drivers/staging/mt29f_spinand/Kconfig ***
 #-
@@ -6519,6 +6570,11 @@ CRYPTO_SKEIN all=y
 #-
 SLICOSS all=m
 
+#-
+#- *** FILE: drivers/staging/sm7xxfb/Kconfig ***
+#-
+FB_SM7XX all=m
+
 #-
 #- *** FILE: drivers/staging/speakup/Kconfig ***
 #-
@@ -6551,16 +6607,10 @@ UNISYSSPAR all=y
 #- file drivers/staging/unisys/visorutil/Kconfig goes here
 #- file drivers/staging/unisys/visorchannel/Kconfig goes here
 #- file drivers/staging/unisys/visorchipset/Kconfig goes here
-#- file drivers/staging/unisys/channels/Kconfig goes here
 #- file drivers/staging/unisys/uislib/Kconfig goes here
 #- file drivers/staging/unisys/virtpci/Kconfig goes here
 #- file drivers/staging/unisys/virthba/Kconfig goes here
 
-#-
-#- *** FILE: drivers/staging/unisys/channels/Kconfig ***
-#-
-UNISYS_CHANNELSTUB all=m
-
 #-
 #- *** FILE: drivers/staging/unisys/uislib/Kconfig ***
 #-
@@ -6748,7 +6798,6 @@ SERIAL_8250_FINTEK all=m
 SERIAL_KGDB_NMI all=n
 SERIAL_MAX3100 all=m
 SERIAL_MAX310X all=y
-SERIAL_MRST_MAX3110 all=m
 SERIAL_MFD_HSU all=m
 SERIAL_UARTLITE all=m
 SERIAL_SUNCORE sparc=y sparc64=y
@@ -6829,6 +6878,7 @@ USB all=m sparc=n
 #- file drivers/usb/dwc3/Kconfig goes here
 #- file drivers/usb/dwc2/Kconfig goes here
 #- file drivers/usb/chipidea/Kconfig goes here
+#- file drivers/usb/isp1760/Kconfig goes here
 #- USB port drivers
 USB_USS720 all=m
 #- file drivers/usb/serial/Kconfig goes here
@@ -6930,6 +6980,7 @@ USB_CONFIGFS_F_UAC1 all=y
 USB_CONFIGFS_F_UAC2 all=y
 USB_CONFIGFS_F_MIDI all=y
 USB_CONFIGFS_F_HID all=y
+USB_CONFIGFS_F_UVC all=y
 #- file drivers/usb/gadget/legacy/Kconfig goes here
 
 #-
@@ -7006,7 +7057,6 @@ USB_EHCI_HCD_PPC_OF ppc=y ppc64=y
 USB_EHCI_MV all=y
 USB_OXU210HP_HCD all=m
 USB_ISP116X_HCD all=m
-USB_ISP1760_HCD all=m
 USB_ISP1362_HCD all=m
 USB_FUSBH200_HCD all=m
 USB_FOTG210_HCD all=m
@@ -7037,6 +7087,15 @@ USB_HCD_TEST_MODE all=n
 USB_MDC800 all=m
 USB_MICROTEK all=m
 
+#-
+#- *** FILE: drivers/usb/isp1760/Kconfig ***
+#-
+USB_ISP1760 all=m
+USB_ISP1760_HCD all=m
+USB_ISP1760_HOST_ROLE all=n
+USB_ISP1760_GADGET_ROLE all=n
+USB_ISP1760_DUAL_ROLE all=y
+
 #-
 #- *** FILE: drivers/usb/misc/Kconfig ***
 #-
@@ -7299,6 +7358,8 @@ VGACON_SOFT_SCROLLBACK all=n ia64=y
 VGACON_SOFT_SCROLLBACK_SIZE ia64=64
 MDA_CONSOLE alpha=m i386=m
 DUMMY_CONSOLE all=y
+DUMMY_CONSOLE_COLUMNS all=80
+DUMMY_CONSOLE_ROWS all=25
 FRAMEBUFFER_CONSOLE all=y
 FRAMEBUFFER_CONSOLE_ROTATION all=y
 
@@ -7471,6 +7532,7 @@ VIRT_DRIVERS all=y
 #-
 VIRTIO all=m
 VIRTIO_PCI all=m
+VIRTIO_PCI_LEGACY all=y
 VIRTIO_BALLOON all=m
 VIRTIO_MMIO all=m
 VIRTIO_MMIO_CMDLINE_DEVICES all=y
@@ -7610,6 +7672,7 @@ USBPCWATCHDOG all=m
 XEN_BALLOON all=y
 XEN_SELFBALLOONING all=y
 XEN_BALLOON_MEMORY_HOTPLUG all=y
+XEN_BALLOON_MEMORY_HOTPLUG_LIMIT all=512
 XEN_SCRUB_PAGES all=y
 XEN_DEV_EVTCHN all=m
 XEN_BACKEND all=y
@@ -7637,7 +7700,6 @@ XEN_MCE_LOG all=y
 #- file fs/ext2/Kconfig goes here
 #- file fs/ext3/Kconfig goes here
 #- file fs/ext4/Kconfig goes here
-FS_XIP all=y
 #- file fs/jbd/Kconfig goes here
 #- file fs/jbd2/Kconfig goes here
 FS_MBCACHE all=m
@@ -7648,6 +7710,7 @@ FS_MBCACHE all=m
 #- file fs/ocfs2/Kconfig goes here
 #- file fs/btrfs/Kconfig goes here
 #- file fs/nilfs2/Kconfig goes here
+FS_DAX all=y
 FS_POSIX_ACL all=y
 FILE_LOCKING all=y
 #- file fs/notify/Kconfig goes here
@@ -7669,6 +7732,7 @@ TMPFS_POSIX_ACL all=y
 TMPFS_XATTR all=y
 HUGETLBFS all=y alpha= sparc= sparc64=y
 #- file fs/configfs/Kconfig goes here
+#- file fs/efivarfs/Kconfig goes here
 MISC_FILESYSTEMS all=y
 #- file fs/adfs/Kconfig goes here
 #- file fs/affs/Kconfig goes here
@@ -7695,7 +7759,6 @@ MISC_FILESYSTEMS all=y
 #- file fs/ufs/Kconfig goes here
 #- file fs/exofs/Kconfig goes here
 #- file fs/f2fs/Kconfig goes here
-#- file fs/efivarfs/Kconfig goes here
 #- file fs/aufs/Kconfig goes here
 #- file fs/exofs/Kconfig.ore goes here
 NETWORK_FILESYSTEMS all=y
@@ -7855,7 +7918,6 @@ EXT2_FS all=m
 EXT2_FS_XATTR all=y
 EXT2_FS_POSIX_ACL all=y
 EXT2_FS_SECURITY all=y
-EXT2_FS_XIP all=y
 
 #-
 #- *** FILE: fs/ext3/Kconfig ***
@@ -7883,6 +7945,7 @@ F2FS_FS_XATTR all=y
 F2FS_FS_POSIX_ACL all=y
 F2FS_FS_SECURITY all=y
 F2FS_CHECK_FS all=y
+F2FS_IO_TRACE all=y
 
 #-
 #- *** FILE: fs/fat/Kconfig ***
@@ -8028,6 +8091,7 @@ NFSD_V2_ACL all=y
 NFSD_V3 all=y
 NFSD_V3_ACL all=y
 NFSD_V4 all=y
+NFSD_PNFS all=y
 NFSD_V4_SECURITY_LABEL all=y
 NFSD_FAULT_INJECTION all=n
 
@@ -8146,6 +8210,7 @@ PROC_SYSCTL all=y
 #-
 PSTORE all=y
 PSTORE_CONSOLE all=y
+PSTORE_PMSG all=y
 PSTORE_FTRACE all=n
 PSTORE_RAM all=m
 
@@ -8290,6 +8355,7 @@ RCU_FANOUT all=32 alpha=64 ia64=64 ppc64=64 sparc64=64 x86_64=64
 RCU_FANOUT_LEAF all=16
 RCU_FANOUT_EXACT all=n
 RCU_FAST_NO_HZ all=y
+RCU_KTHREAD_PRIO all=0
 RCU_NOCB_CPU all=n
 RCU_NOCB_CPU_NONE all=y
 RCU_NOCB_CPU_ZERO all=n
@@ -8332,7 +8398,6 @@ SYSFS_DEPRECATED_V2 all=n
 RELAY all=y
 BLK_DEV_INITRD all=y
 #- file usr/Kconfig goes here
-INIT_FALLBACK all=y
 CC_OPTIMIZE_FOR_SIZE all=n
 SYSCTL all=y
 ANON_INODES all=y
@@ -8412,6 +8477,11 @@ GENERIC_MSI_IRQ all=y
 IRQ_DOMAIN_DEBUG all=n
 IRQ_FORCED_THREADING all=y
 
+#-
+#- *** FILE: kernel/livepatch/Kconfig ***
+#-
+LIVEPATCH all=y
+
 #-
 #- *** FILE: kernel/power/Kconfig ***
 #-
@@ -8523,6 +8593,7 @@ DEBUG_INFO all=y
 DEBUG_INFO_REDUCED all=n
 DEBUG_INFO_SPLIT all=y
 DEBUG_INFO_DWARF4 all=y
+GDB_SCRIPTS all=y
 ENABLE_WARN_DEPRECATED all=y
 ENABLE_MUST_CHECK all=y
 FRAME_WARN all=2048
@@ -8536,7 +8607,6 @@ HEADERS_CHECK all=y
 DEBUG_SECTION_MISMATCH all=n
 FRAME_POINTER i386=y x86_64=y
 DEBUG_FORCE_WEAK_PER_CPU all=n
-PAGE_EXTENSION all=n
 MAGIC_SYSRQ all=y
 MAGIC_SYSRQ_DEFAULT_ENABLE all=0x1
 DEBUG_KERNEL all=y
@@ -8551,6 +8621,7 @@ DEBUG_VIRTUAL all=n
 MEMORY_NOTIFIER_ERROR_INJECT all=m
 DEBUG_HIGHMEM i386=n sparc=n
 #- file lib/Kconfig.kmemcheck goes here
+#- file lib/Kconfig.kasan goes here
 DEBUG_SHIRQ all=n
 LOCKUP_DETECTOR all=y
 BOOTPARAM_HARDLOCKUP_PANIC all=n
@@ -8605,6 +8676,7 @@ INTERVAL_TREE_TEST all=m
 PERCPU_TEST all=m
 ATOMIC64_SELFTEST all=n
 ASYNC_RAID6_TEST all=m
+TEST_HEXDUMP all=m
 TEST_STRING_HELPERS all=m
 TEST_KSTRTOX all=m
 TEST_RHASHTABLE all=n
@@ -8619,6 +8691,11 @@ TEST_UDELAY all=m
 #- file samples/Kconfig goes here
 #- file lib/Kconfig.kgdb goes here
 
+#-
+#- *** FILE: lib/Kconfig.kasan ***
+#-
+KASAN all=n
+
 #-
 #- *** FILE: lib/Kconfig.kgdb ***
 #-
@@ -8696,10 +8773,12 @@ ZSWAP all=y
 ZBUD all=m
 ZSMALLOC all=y
 PGTABLE_MAPPING all=n
+ZSMALLOC_STAT all=y
 
 #-
 #- *** FILE: mm/Kconfig.debug ***
 #-
+PAGE_EXTENSION all=n
 DEBUG_PAGEALLOC all=n
 PAGE_POISONING sparc=n ia64=n alpha=n
 
@@ -8740,7 +8819,7 @@ NETWORK_PHY_TIMESTAMPING all=n
 NETFILTER all=y
 NETFILTER_DEBUG all=n
 NETFILTER_ADVANCED all=y
-BRIDGE_NETFILTER all=y
+BRIDGE_NETFILTER all=m
 #- file net/netfilter/Kconfig goes here
 #- file net/ipv4/netfilter/Kconfig goes here
 #- file net/ipv6/netfilter/Kconfig goes here
@@ -8842,6 +8921,7 @@ BT_BREDR all=y
 #- file net/bluetooth/hidp/Kconfig goes here
 BT_LE all=y
 BT_6LOWPAN all=y
+BT_SELFTEST all=n
 #- file drivers/bluetooth/Kconfig goes here
 
 #-
@@ -8975,11 +9055,17 @@ NET_DSA all=y
 #-
 HSR all=m
 
+#-
+#- *** FILE: net/ieee802154/6lowpan/Kconfig ***
+#-
+IEEE802154_6LOWPAN all=m
+
 #-
 #- *** FILE: net/ieee802154/Kconfig ***
 #-
 IEEE802154 all=m
-IEEE802154_6LOWPAN all=m
+IEEE802154_SOCKET all=m
+#- file net/ieee802154/6lowpan/Kconfig goes here
 
 #-
 #- *** FILE: net/ipv4/Kconfig ***
@@ -9545,6 +9631,8 @@ NET_ACT_SIMP all=m
 NET_ACT_SKBEDIT all=m
 NET_ACT_CSUM all=m
 NET_ACT_VLAN all=m
+NET_ACT_BPF all=m
+NET_ACT_CONNMARK all=m
 NET_CLS_IND all=y
 NET_SCH_FIFO all=y
 
@@ -9578,7 +9666,6 @@ NET_SWITCHDEV all=y
 #- *** FILE: net/tipc/Kconfig ***
 #-
 TIPC all=m
-TIPC_PORTS all=8191
 TIPC_MEDIA_IB all=y
 
 #-
@@ -9697,7 +9784,6 @@ PERSISTENT_KEYRINGS all=y
 BIG_KEYS all=y
 TRUSTED_KEYS all=m
 ENCRYPTED_KEYS all=m
-KEYS_DEBUG_PROC_KEYS all=n
 
 #-
 #- *** FILE: security/selinux/Kconfig ***
@@ -9716,6 +9802,7 @@ SECURITY_SELINUX_POLICYDB_VERSION_MAX all=n
 #-
 SECURITY_SMACK all=y
 SECURITY_SMACK_BRINGUP all=y
+SECURITY_SMACK_NETFILTER all=y
 
 #-
 #- *** FILE: security/tomoyo/Kconfig ***
@@ -10078,6 +10165,7 @@ SND_SOC all=m
 #- file sound/soc/tegra/Kconfig goes here
 #- file sound/soc/txx9/Kconfig goes here
 #- file sound/soc/ux500/Kconfig goes here
+#- file sound/soc/xtensa/Kconfig goes here
 #- file sound/soc/codecs/Kconfig goes here
 #- file sound/soc/generic/Kconfig goes here
 
@@ -10127,6 +10215,7 @@ SND_SOC_SPDIF all=m
 SND_SOC_SSM2602_SPI all=m
 SND_SOC_SSM2602_I2C all=m
 SND_SOC_SSM4567 all=m
+SND_SOC_STA32X all=m
 SND_SOC_STA350 all=m
 SND_SOC_TAS2552 all=m
 SND_SOC_TAS5086 all=m
@@ -10198,6 +10287,12 @@ SND_SOC_INTEL_BYT_MAX98090_MACH all=m
 SND_SOC_INTEL_BROADWELL_MACH all=m
 SND_SOC_INTEL_BYTCR_RT5640_MACH all=m
 SND_SOC_INTEL_CHT_BSW_RT5672_MACH all=m
+SND_SOC_INTEL_CHT_BSW_RT5645_MACH all=m
+
+#-
+#- *** FILE: sound/soc/xtensa/Kconfig ***
+#-
+SND_SOC_XTFPGA_I2S all=m
 
 #-
 #- *** FILE: sound/sparc/Kconfig ***
@@ -10227,6 +10322,15 @@ SND_USB_US122L all=m
 SND_USB_6FIRE all=m
 SND_USB_HIFACE all=m
 SND_BCD2000 all=m
+#- file sound/usb/line6/Kconfig goes here
+
+#-
+#- *** FILE: sound/usb/line6/Kconfig ***
+#-
+SND_USB_POD all=m
+SND_USB_PODHD all=m
+SND_USB_TONEPORT all=m
+SND_USB_VARIAX all=m
 
 #-
 #- *** FILE: usr/Kconfig ***
@@ -10238,3 +10342,27 @@ RD_LZMA all=y
 RD_XZ all=y
 RD_LZO all=y
 RD_LZ4 all=y
+
+#-
+#- *** PROBABLY REMOVED OPTIONS ***
+#-
+BLK_DEV_XIP all=y
+EXT2_FS_XIP all=y
+FS_XIP all=y
+INIT_FALLBACK all=y
+KEYS_DEBUG_PROC_KEYS all=n
+LINE6_USB all=m
+LINE6_USB_IMPULSE_RESPONSE all=n
+MEDIA_PARPORT_SUPPORT all=y
+SERIAL_MRST_MAX3110 all=m
+TCG_ST33_I2C all=m
+TIPC_PORTS all=8191
+TOUCHSCREEN_CLEARPAD_TM1217 all=m
+UNISYS_CHANNELSTUB all=m
+VIDEO_BTCX all=m sparc=
+VIDEO_BWQCAM all=m
+VIDEO_CQCAM all=m
+VIDEO_PMS all=m
+VIDEO_SAA7191 all=m
+VIDEO_TLG2300 all=m
+VIDEO_W9966 all=m
index 9a0891916debaa5a2f8054ae9de71de764a30065..12aa8ba0381394f5a1eeef04cbe7bd49ec13223b 100644 (file)
@@ -70,9 +70,9 @@
 %define                have_pcmcia     0
 %endif
 
-%define                rel             3
-%define                basever         3.19
-%define                postver         .3
+%define                rel             0.1
+%define                basever         4.0
+%define                postver         .0
 
 # define this to '-%{basever}' for longterm branch
 %define                versuffix       %{nil}
@@ -117,10 +117,10 @@ Release:  %{rel}
 Epoch:         3
 License:       GPL v2
 Group:         Base/Kernel
-Source0:       http://www.kernel.org/pub/linux/kernel/v3.x/linux-%{basever}.tar.xz
-# Source0-md5: d3fc8316d4d4d04b65cbc2d70799e763
+Source0:       http://www.kernel.org/pub/linux/kernel/v4.x/linux-%{basever}.tar.xz
+# Source0-md5: a86916bd12798220da9eb4a1eec3616d
 %if "%{postver}" != ".0"
-Patch0:                http://www.kernel.org/pub/linux/kernel/v3.x/patch-%{version}.xz
+Patch0:                http://www.kernel.org/pub/linux/kernel/v4.x/patch-%{version}.xz
 # Patch0-md5:  1fec75551b2f55fced43df8394b1fd9a
 %endif
 Source1:       kernel.sysconfig
@@ -201,7 +201,7 @@ Patch101:   kernel-vserver-fixes.patch
 # Patch creation:
 # git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git
 # cd aufs3-standalone
-# git checkout -b aufs3.15 origin/aufs3.15
+# git checkout -b aufs4.0 origin/aufs4.0
 # cat aufs3-kbuild.patch aufs3-base.patch aufs3-mmap.patch aufs3-standalone.patch > ~/rpm/packages/kernel/kernel-aufs3.patch
 # mkdir linux
 # cp -a Documentation fs include linux
@@ -234,7 +234,6 @@ Patch505:   dm-crypt-sort-requests.patch
 Patch2000:     kernel-small_fixes.patch
 Patch2001:     kernel-pwc-uncompress.patch
 Patch2003:     kernel-regressions.patch
-Patch2004:     kernel-btrfs_deadlock_mount.patch
 
 # bzr co lp:apparmor
 # ls apparmor/kernel-patches/3.12
@@ -751,7 +750,6 @@ cd linux-%{basever}
 %patch2000 -p1
 %patch2001 -p1
 #%patch2003 -p1
-%patch2004 -p1
 
 # Do not remove this, please!
 #%%patch50000 -p1
This page took 0.498288 seconds and 4 git commands to generate.