Commit ea6d6fc7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] mbcache: add gfp_mask parameter to free() callback,

Patch from Andreas Gruenbacher <agruen@suse.de>

Add a gfp_mask parameter to the free() callback so that the callback can
safely do I/O, etc. The free callback can now also fail.  This will be
needed by reiserfs.

The order of entries on the cache entry lru is reversed so that
list_for_each_safe() can be used. Several helper functions that don't
make the code any better are removed. Finally, a couple of cosmetic
things.
parent 0828e38f
This diff is collapsed.
......@@ -10,7 +10,7 @@
struct mb_cache_entry;
struct mb_cache_op {
void (*free)(struct mb_cache_entry *);
int (*free)(struct mb_cache_entry *, int);
};
struct mb_cache {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment