]> err.no Git - linux-2.6/blobdiff - fs/open.c
writeback: fix time ordering of the per superblock dirty inode lists 7
[linux-2.6] / fs / open.c
index 1d9e5e98bf4e725615cc3cfcd269dc2cab5101e4..cdbb94a9efc20ceb3c07c52419b73b124859f7e6 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -757,6 +757,10 @@ static struct file *__dentry_open(struct dentry *dentry, struct vfsmount *mnt,
        f->f_op = fops_get(inode->i_fop);
        file_move(f, &inode->i_sb->s_files);
 
+       error = security_dentry_open(f);
+       if (error)
+               goto cleanup_all;
+
        if (!open && f->f_op)
                open = f->f_op->open;
        if (open) {
@@ -1173,7 +1177,7 @@ asmlinkage long sys_vhangup(void)
 int generic_file_open(struct inode * inode, struct file * filp)
 {
        if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS)
-               return -EFBIG;
+               return -EOVERFLOW;
        return 0;
 }