[-mm patch] fs/nfs/: make 2 functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux