init: open output files from cpio unpacking with O_LARGEFILE
[sfrench/cifs-2.6.git] / init / initramfs.c
index 3127e0bf7bbd15487ea6b50bd277801f6c01ae7e..a298a3854a8018923dbbd26adbc271550ef9a198 100644 (file)
@@ -367,7 +367,7 @@ static int __init do_name(void)
        if (S_ISREG(mode)) {
                int ml = maybe_link();
                if (ml >= 0) {
-                       int openflags = O_WRONLY|O_CREAT;
+                       int openflags = O_WRONLY|O_CREAT|O_LARGEFILE;
                        if (ml != 1)
                                openflags |= O_TRUNC;
                        wfile = filp_open(collected, openflags, mode);