Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140207
b: refs/heads/master
c: b510882
h: refs/heads/master
i:
  140205: 956b8cf
  140203: c8ed5dd
  140199: cf86d9a
  140191: 1997a2b
v: v3
  • Loading branch information
David Howells committed Apr 3, 2009
1 parent 540746d commit a8c6d23
Show file tree
Hide file tree
Showing 5 changed files with 887 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 952efe7b7840e1c726ae88222245e4efe6bd88f3
refs/heads/master: b510882281d56873e1194021643b7c325336f84f
3 changes: 2 additions & 1 deletion trunk/fs/fscache/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ fscache-y := \
main.o \
netfs.o \
object.o \
operation.o
operation.o \
page.o

fscache-$(CONFIG_PROC_FS) += proc.o
fscache-$(CONFIG_FSCACHE_STATS) += stats.o
Expand Down
21 changes: 21 additions & 0 deletions trunk/fs/fscache/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,27 @@ static inline void fscache_cookie_put(struct fscache_cookie *cookie)
__fscache_cookie_put(cookie);
}

/*
* get an extra reference to a netfs retrieval context
*/
static inline
void *fscache_get_context(struct fscache_cookie *cookie, void *context)
{
if (cookie->def->get_context)
cookie->def->get_context(cookie->netfs_data, context);
return context;
}

/*
* release a reference to a netfs retrieval context
*/
static inline
void fscache_put_context(struct fscache_cookie *cookie, void *context)
{
if (cookie->def->put_context)
cookie->def->put_context(cookie->netfs_data, context);
}

/*****************************************************************************/
/*
* debug tracing
Expand Down
Loading

0 comments on commit a8c6d23

Please sign in to comment.