Uniofs: port to 3.5
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 08:17:31 +0000 (03:17 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 08:17:31 +0000 (03:17 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
MAINTAINERS
fs/unionfs/file.c
fs/unionfs/super.c

index 58967cb142ad695a2719acbaddb903ba2077c690..069afe89725e88cdde24c0e6bcc03d1f13cc25b1 100644 (file)
@@ -7061,14 +7061,6 @@ F:       Documentation/cdrom/
 F:     drivers/cdrom/cdrom.c
 F:     include/linux/cdrom.h
 
-UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER
-M:     Vinayak Holikatti <vinholikatti@gmail.com>
-M:     Santosh Y <santoshsy@gmail.com>
-L:     linux-scsi@vger.kernel.org
-S:     Supported
-F:     Documentation/scsi/ufs.txt
-F:     drivers/scsi/ufs/
-
 UNION FILE SYSTEM
 P:     Erez Zadok
 M:     ezk@cs.sunysb.edu
@@ -7079,6 +7071,14 @@ S:       Maintained
 F:     Documentation/filesystems/unionfs/
 F:     fs/unionfs/
 
+UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER
+M:     Vinayak Holikatti <vinholikatti@gmail.com>
+M:     Santosh Y <santoshsy@gmail.com>
+L:     linux-scsi@vger.kernel.org
+S:     Supported
+F:     Documentation/scsi/ufs.txt
+F:     drivers/scsi/ufs/
+
 UNSORTED BLOCK IMAGES (UBI)
 M:     Artem Bityutskiy <dedekind1@gmail.com>
 W:     http://www.linux-mtd.infradead.org/
index f583c8fc5a24d885dbb4caca78a3846844e17914..8a04063930e5f513f445c1bbcfe04779bb91c61f 100644 (file)
@@ -156,8 +156,9 @@ static int unionfs_mmap(struct file *file, struct vm_area_struct *vma)
                        goto out;
                }
                saved_vm_ops = vma->vm_ops;
-               err = do_munmap(current->mm, vma->vm_start,
-                               vma->vm_end - vma->vm_start);
+               up_write(&current->mm->mmap_sem); /* VFS already holds sema... */
+               err = vm_munmap(vma->vm_start, vma->vm_end - vma->vm_start);
+               down_write(&current->mm->mmap_sem);
                if (err) {
                        printk(KERN_ERR "unionfs: do_munmap failed %d\n", err);
                        goto out;
index b99f14d1c748772824457d2c4c8eaf8e405b0355..53d289b19c39131077237adad7f0e3416fd6ba54 100644 (file)
@@ -835,7 +835,7 @@ static void unionfs_evict_inode(struct inode *inode)
        struct unionfs_dir_state *rdstate;
 
        truncate_inode_pages(&inode->i_data, 0);
-       end_writeback(inode);
+       clear_inode(inode);
 
        list_for_each_safe(pos, n, &UNIONFS_I(inode)->readdircache) {
                rdstate = list_entry(pos, struct unionfs_dir_state, cache);