3.5.7.8 -stable review patch.  If anyone has any objections, please let me know.

------------------

From: Justin Lecher <j...@gentoo.org>

commit 98c350cda2c14a343d34ea01a3d9c24fea5ec66d upstream.

Support the caching of large files.

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

Signed-off-by: Justin Lecher <j...@gentoo.org>
Signed-off-by: Suresh Jayaraman <sjayara...@suse.com>
Tested-by: Suresh Jayaraman <sjayara...@suse.com>
Acked-by: David Howells <dhowe...@redhat.com>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
[ luis: adjust context ]
Signed-off-by: Luis Henriques <luis.henriq...@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 */
        dget(object->backer);
        mntget(cache->mnt);
-       file = dentry_open(object->backer, cache->mnt, O_RDWR,
+       file = dentry_open(object->backer, cache->mnt, O_RDWR | O_LARGEFILE,
                           cache->cache_cred);
        if (IS_ERR(file)) {
                ret = PTR_ERR(file);
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to