[PATCH] eCryptfs: set O_LARGEFILE when opening lower file
[firefly-linux-kernel-4.4.55.git] / fs / ecryptfs / inode.c
index 9fa7e0b27a96ee57ae08187e17b6872b79d39fd4..0cfff4fefa9ea0b235f14d627b8c9010bceaf8c3 100644 (file)
@@ -200,9 +200,6 @@ static int ecryptfs_initialize_file(struct dentry *ecryptfs_dentry)
        inode = ecryptfs_dentry->d_inode;
        crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat;
        lower_flags = ((O_CREAT | O_TRUNC) & O_ACCMODE) | O_RDWR;
-#if BITS_PER_LONG != 32
-       lower_flags |= O_LARGEFILE;
-#endif
        lower_mnt = ecryptfs_dentry_to_lower_mnt(ecryptfs_dentry);
        /* Corresponding fput() at end of this function */
        if ((rc = ecryptfs_open_lower_file(&lower_file, lower_dentry, lower_mnt,