Skip to contentSkip to conversation

FS-Cache: More miscellany

PATCH In review David Howells 1 participant 4 messages Nov 12, 2015

Subsystems (4)
lore
Share & tools
lore

David Howells

author maintainer
#0 lore raw

cover FS-Cache: More miscellany

Attached are another couple of miscellaneous bits in FS-Cache and CacheFiles:

(1) Fix an uninitialised error value.

(2) In MAINTAINERS, mark the mailing list as being moderated for non-subscribers.

These can also be found here:

http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache-fixes

David
---
Geert Uytterhoeven (2):
FS-Cache: Add missing initialization of ret in cachefiles_write_page()
MAINTAINERS: [email protected] is moderated for non-subscribers

 MAINTAINERS          |    4 ++--
 fs/cachefiles/rdwr.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
author maintainer
#1 lore raw

PATCH 1/2 FS-Cache: Add missing initialization of ret in cachefiles_write_page()

From: Geert Uytterhoeven <[email protected]>

fs/cachefiles/rdwr.c: In function ‘cachefiles_write_page’:
fs/cachefiles/rdwr.c:882: warning: ‘ret’ may be used uninitialized in this function

If the jump to label "error" is taken, "ret" will indeed be uninitialized, and random stack data may be printed by the debug code.

Fixes 102f4d900c9c8f5e ("FS-Cache: Handle a write to the page immediately beyond the EOF marker")

---

 fs/cachefiles/rdwr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cachefiles/rdwr.c +1 -1
index 7a6b02f72787..c0f3da3926a0 100644
@@ -879,7 +879,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
 	loff_t pos, eof;
 	size_t len;
 	void *data;
-	int ret;
+	int ret = -ENOBUFS;
 
 	ASSERT(op != NULL);
 	ASSERT(page != NULL);

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

author maintainer
#2 lore raw

PATCH 2/2 MAINTAINERS: [email protected] is moderated for non-subscribers

In reply to David Howells

From: Geert Uytterhoeven <[email protected]>

---

 MAINTAINERS |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
index 35fe7ae0492e..470605885f01 100644
@@ -2545,7 +2545,7 @@ F:	arch/c6x/
 
 CACHEFILES: FS-CACHE BACKEND FOR CACHING ON MOUNTED FILESYSTEMS
 M:	David Howells <[email protected]>
-L:	[email protected]
+L:	[email protected] (moderated for non-subscribers)
 S:	Supported
 F:	Documentation/filesystems/caching/cachefiles.txt
 F:	fs/cachefiles/
@@ -4558,7 +4558,7 @@ F:	include/linux/frontswap.h
 
 FS-CACHE: LOCAL CACHING FOR NETWORK FILESYSTEMS
 M:	David Howells <[email protected]>
-L:	[email protected]
+L:	[email protected] (moderated for non-subscribers)
 S:	Supported
 F:	Documentation/filesystems/caching/
 F:	fs/fscache/