diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-07-27 11:09:42 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-08-13 08:59:02 -0400 |
commit | c8c081b70cb563cc4d41ab9933fa3323c6f6ffca (patch) | |
tree | 31e4854fd9c7eda3116d1f11b667c1cd9917ee58 /include | |
parent | 9936f2ae37482aff54ce53918c69b378bb50097c (diff) | |
download | linux-stable-c8c081b70cb563cc4d41ab9933fa3323c6f6ffca.tar.gz linux-stable-c8c081b70cb563cc4d41ab9933fa3323c6f6ffca.tar.bz2 linux-stable-c8c081b70cb563cc4d41ab9933fa3323c6f6ffca.zip |
sunrpc/nfsd: Remove redundant code by exports seq_operations functions
Nfsd has implement a site of seq_operations functions as sunrpc's cache.
Just exports sunrpc's codes, and remove nfsd's redundant codes.
v8, same as v6
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 437ddb6c4aef..04ee5a284aac 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -224,6 +224,11 @@ extern int sunrpc_cache_register_pipefs(struct dentry *parent, const char *, umode_t, struct cache_detail *); extern void sunrpc_cache_unregister_pipefs(struct cache_detail *); +/* Must store cache_detail in seq_file->private if using next three functions */ +extern void *cache_seq_start(struct seq_file *file, loff_t *pos); +extern void *cache_seq_next(struct seq_file *file, void *p, loff_t *pos); +extern void cache_seq_stop(struct seq_file *file, void *p); + extern void qword_add(char **bpp, int *lp, char *str); extern void qword_addhex(char **bpp, int *lp, char *buf, int blen); extern int qword_get(char **bpp, char *dest, int bufsize); |