[ 3.5.y.z extended stable ] Patch "fs: cachefiles: add support for large files in filesystem" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Tue Mar 5 18:51:30 UTC 2013

This is a note to let you know that I have just added a patch titled

    fs: cachefiles: add support for large files in filesystem

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:


If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



>From a0a0528c654af813200e3a8b24fe831910c599b1 Mon Sep 17 00:00:00 2001
From: Justin Lecher <jlec at gentoo.org>
Date: Mon, 30 Jul 2012 14:42:53 -0700
Subject: [PATCH] fs: cachefiles: add support for large files in filesystem

commit 98c350cda2c14a343d34ea01a3d9c24fea5ec66d upstream.

Support the caching of large files.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=31182

Signed-off-by: Justin Lecher <jlec at gentoo.org>
Signed-off-by: Suresh Jayaraman <sjayaraman at suse.com>
Tested-by: Suresh Jayaraman <sjayaraman at suse.com>
Acked-by: David Howells <dhowells at redhat.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
[ luis: adjust context ]
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
 fs/cachefiles/rdwr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c
index 0e3c092..b4d2438 100644
--- a/fs/cachefiles/rdwr.c
+++ b/fs/cachefiles/rdwr.c
@@ -918,7 +918,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
 	 * own time */
-	file = dentry_open(object->backer, cache->mnt, O_RDWR,
+	file = dentry_open(object->backer, cache->mnt, O_RDWR | O_LARGEFILE,
 	if (IS_ERR(file)) {
 		ret = PTR_ERR(file);

More information about the kernel-team mailing list