Messages in this thread Patch in this message | | | Date | Thu, 29 Jun 2006 21:20:15 +0200 | From | Adrian Bunk <> | Subject | [-mm patch] fs/nfs/: make 2 functions static |
| |
On Thu, Jun 29, 2006 at 01:36:43AM -0700, Andrew Morton wrote: >... > Changes since 2.6.17-mm3: >... > git-nfs.patch >... > git trees. >...
nfs_writedata_free() and nfs_readdata_free() can now become static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
fs/nfs/read.c | 2 +- fs/nfs/write.c | 2 +- include/linux/nfs_fs.h | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-)
--- linux-2.6.17-mm4-full/include/linux/nfs_fs.h.old 2006-06-29 15:04:22.000000000 +0200 +++ linux-2.6.17-mm4-full/include/linux/nfs_fs.h 2006-06-29 15:05:22.000000000 +0200 @@ -477,10 +477,9 @@ } /* - * Allocate and free nfs_write_data structures + * Allocate nfs_write_data structures */ extern struct nfs_write_data *nfs_writedata_alloc(unsigned int pagecount); -extern void nfs_writedata_free(struct nfs_write_data *p); /* * linux/fs/nfs/read.c @@ -492,10 +491,9 @@ extern void nfs_readdata_release(void *data); /* - * Allocate and free nfs_read_data structures + * Allocate nfs_read_data structures */ extern struct nfs_read_data *nfs_readdata_alloc(unsigned int pagecount); -extern void nfs_readdata_free(struct nfs_read_data *p); /* * linux/fs/nfs3proc.c --- linux-2.6.17-mm4-full/fs/nfs/read.c.old 2006-06-29 15:05:31.000000000 +0200 +++ linux-2.6.17-mm4-full/fs/nfs/read.c 2006-06-29 15:05:37.000000000 +0200 @@ -64,7 +64,7 @@ return p; } -void nfs_readdata_free(struct nfs_read_data *p) +static void nfs_readdata_free(struct nfs_read_data *p) { if (p && (p->pagevec != &p->page_array[0])) kfree(p->pagevec); --- linux-2.6.17-mm4-full/fs/nfs/write.c.old 2006-06-29 15:05:48.000000000 +0200 +++ linux-2.6.17-mm4-full/fs/nfs/write.c 2006-06-29 15:05:56.000000000 +0200 @@ -138,7 +138,7 @@ return p; } -void nfs_writedata_free(struct nfs_write_data *p) +static void nfs_writedata_free(struct nfs_write_data *p) { if (p && (p->pagevec != &p->page_array[0])) kfree(p->pagevec); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |