diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-07-30 17:42:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:21 -0400 |
commit | 98c350cda2c14a343d34ea01a3d9c24fea5ec66d (patch) | |
tree | d7ea2d9fd0e9f932d47e2e3b4f6b83ade1b861b2 /fs/cachefiles | |
parent | 668f06b9fb846ecedb73964ca5dd95ce441707be (diff) |
fs: cachefiles: add support for large files in filesystem caching
Support the caching of large files.
Addresses https://bugzilla.kernel.org/show_bug.cgi?id=31182
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.com>
Tested-by: Suresh Jayaraman <sjayaraman@suse.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cachefiles')
-rw-r--r-- | 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 c0353dfac51f..c994691d9445 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) | |||
919 | * own time */ | 919 | * own time */ |
920 | path.mnt = cache->mnt; | 920 | path.mnt = cache->mnt; |
921 | path.dentry = object->backer; | 921 | path.dentry = object->backer; |
922 | file = dentry_open(&path, O_RDWR, cache->cache_cred); | 922 | file = dentry_open(&path, O_RDWR | O_LARGEFILE, cache->cache_cred); |
923 | if (IS_ERR(file)) { | 923 | if (IS_ERR(file)) { |
924 | ret = PTR_ERR(file); | 924 | ret = PTR_ERR(file); |
925 | } else { | 925 | } else { |