Skip to contentSkip to conversation

fs: cachefiles: Add support for large files in filesystem caching

PATCH In review justin 3 participants 5 messages Apr 3, 2012 – Jun 5, 2012 1 message not in the archive Cachefiles: fs-cache backend for caching on mounted filesystems

lore
Share & tools
lore

justin

author
#0 lore raw

PATCH 1/1 fs: cachefiles: Add support for large files in filesystem caching

From 87b3da18f351c4f91d608e75e235c22cd30d7818 Mon Sep 17 00:00:00 2001
From: Justin Lecher <[email protected]>
Date: Tue, 3 Apr 2012 13:51:58 +0200
Subject: [PATCH] fs: cachefiles: Add support for large files in filesystem
caching

Support the caching of large files.

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

---
 fs/cachefiles/rdwr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cachefiles/rdwr.c +0 -0
index 0e3c092..cc7ef95 100644
@@ -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);

From 87b3da18f351c4f91d608e75e235c22cd30d7818 Mon Sep 17 00:00:00 2001
From: Justin Lecher <[email protected]>
Date: Tue, 3 Apr 2012 13:51:58 +0200
Subject: [PATCH] fs: cachefiles: Add support for large files in filesystem
caching

Support the caching of large files.

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

---
 fs/cachefiles/rdwr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cachefiles/rdwr.c +1 -1
index 0e3c092..cc7ef95 100644
@@ -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);
Signature · 1 line
1.7.8.5

A message that is not in the archive (sent off-list or not yet received): CABCEB8nkwhthkA+ge0Ts3bB8s2-GhPi7+XvteYZcDDW_WTk-Ew@mail.gmail.com

author
#3 lore raw
Quoted 3 lines · David Howells

I've added Justin's patch to my queue.

David

Nice to hear that, thanks.

#4 lore raw
In reply to David Howells

Hello David,

This patch doesn't seem to have made it to linux-next (for May 21), yet. Could you kindly re-check?

Thanks
Suresh

Quoted 4 lines · David Howells

I've added Justin's patch to my queue.

David

#5 lore raw
In reply to David Howells
Quoted 3 lines · David Howells

I've added Justin's patch to my queue.

Hello David,

I don't find this patch in linux-next, yet. Did you find any problem with this patch?
Just trying to make sure it is not getting lost in the pile..

Thanks
Suresh