[lkml]   [2012]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] [RESEND] fs: cachefiles: Add support for large files in filesystem caching
The below patch which was first posted here:

and tested by me and picked up by the maintainer here:

But it seems to not to have made to the linux-next or Linus tree.
I'm resending what it seems like a lost patch.

From: Justin Lecher <>

Support the caching of large files.

Signed-off-by: Justin Lecher <>
Tested-by: Suresh Jayaraman <>
fs/cachefiles/rdwr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

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

 \ /
  Last update: 2012-06-11 08:21    [W:0.061 / U:31.116 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site