]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/binfmt_misc.c
[PATCH] autofs4: panic after mount fail
[linux-2.6-omap-h63xx.git] / fs / binfmt_misc.c
index 6759b9839ce8528ea5f3a1e238aa3b04b04f5c80..1713c48fef5494e5e8ef361a83b5795ecaae4ce9 100644 (file)
@@ -215,10 +215,8 @@ _error:
        bprm->interp_flags = 0;
        bprm->interp_data = 0;
 _unshare:
-       if (files) {
-               put_files_struct(current->files);
-               current->files = files;
-       }
+       if (files)
+               reset_files_struct(current, files);
        goto _ret;
 }
 
@@ -507,7 +505,6 @@ static struct inode *bm_get_inode(struct super_block *sb, int mode)
                inode->i_mode = mode;
                inode->i_uid = 0;
                inode->i_gid = 0;
-               inode->i_blksize = PAGE_CACHE_SIZE;
                inode->i_blocks = 0;
                inode->i_atime = inode->i_mtime = inode->i_ctime =
                        current_fs_time(inode->i_sb);