linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] fs/coda/: proper prototypes
@ 2006-01-21  0:35 Adrian Bunk
  2006-01-23  0:15 ` Jan Harkes
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2006-01-21  0:35 UTC (permalink / raw)
  To: jaharkes, coda; +Cc: codalist, linux-kernel

This patch introduces a file fs/coda/coda_int.h with proper prototypes 
for some code.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 fs/coda/coda_int.h |   13 +++++++++++++
 fs/coda/dir.c      |    3 ++-
 fs/coda/file.c     |    2 ++
 fs/coda/inode.c    |    2 ++
 fs/coda/psdev.c    |    9 ++-------
 5 files changed, 21 insertions(+), 8 deletions(-)

--- /dev/null	2005-11-08 19:07:57.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/coda_int.h	2006-01-21 01:06:23.000000000 +0100
@@ -0,0 +1,13 @@
+#ifndef _CODA_INT_
+#define _CODA_INT_
+
+extern struct file_system_type coda_fs_type;
+
+void coda_destroy_inodecache(void);
+int coda_init_inodecache(void);
+int coda_fsync(struct file *coda_file, struct dentry *coda_dentry,
+	       int datasync);
+
+#endif  /*  _CODA_INT_  */
+
+
--- linux-2.6.16-rc1-mm2-full/fs/coda/file.c.old	2006-01-21 01:02:36.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/file.c	2006-01-21 01:02:51.000000000 +0100
@@ -24,6 +24,8 @@
 #include <linux/coda_psdev.h>
 #include <linux/coda_proc.h>
 
+#include "coda_int.h"
+
 /* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support
  * CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */
 static int use_coda_close;
--- linux-2.6.16-rc1-mm2-full/fs/coda/dir.c.old	2006-01-21 01:03:33.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/dir.c	2006-01-21 01:03:57.000000000 +0100
@@ -27,6 +27,8 @@
 #include <linux/coda_cache.h>
 #include <linux/coda_proc.h>
 
+#include "coda_int.h"
+
 /* dir inode-ops */
 static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd);
 static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd);
@@ -50,7 +52,6 @@
 /* support routines */
 static int coda_venus_readdir(struct file *filp, filldir_t filldir,
 			      void *dirent, struct dentry *dir);
-int coda_fsync(struct file *, struct dentry *dentry, int datasync);
 
 /* same as fs/bad_inode.c */
 static int coda_return_EIO(void)
--- linux-2.6.16-rc1-mm2-full/fs/coda/inode.c.old	2006-01-21 01:04:12.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/inode.c	2006-01-21 01:04:28.000000000 +0100
@@ -31,6 +31,8 @@
 #include <linux/coda_fs_i.h>
 #include <linux/coda_cache.h>
 
+#include "coda_int.h"
+
 /* VFS super_block ops */
 static void coda_clear_inode(struct inode *);
 static void coda_put_super(struct super_block *);
--- linux-2.6.16-rc1-mm2-full/fs/coda/psdev.c.old	2006-01-21 01:04:36.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/psdev.c	2006-01-21 01:06:07.000000000 +0100
@@ -48,12 +48,9 @@
 #include <linux/coda_psdev.h>
 #include <linux/coda_proc.h>
 
-#define upc_free(r) kfree(r)
+#include "coda_int.h"
 
-/* 
- * Coda stuff
- */
-extern struct file_system_type coda_fs_type;
+#define upc_free(r) kfree(r)
 
 /* statistics */
 int           coda_hard;         /* allows signals during upcalls */
@@ -394,8 +391,6 @@
 MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>");
 MODULE_LICENSE("GPL");
 
-extern int coda_init_inodecache(void);
-extern void coda_destroy_inodecache(void);
 static int __init init_coda(void)
 {
 	int status;


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.6 patch] fs/coda/: proper prototypes
  2006-01-21  0:35 [2.6 patch] fs/coda/: proper prototypes Adrian Bunk
@ 2006-01-23  0:15 ` Jan Harkes
  2006-01-23  0:36   ` Adrian Bunk
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Harkes @ 2006-01-23  0:15 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Sat, Jan 21, 2006 at 01:35:17AM +0100, Adrian Bunk wrote:
> This patch introduces a file fs/coda/coda_int.h with proper prototypes 
> for some code.
> 
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
  Acked-by: Jan Harkes <jaharkes@cs.cmu.edu>

Looks good. Is this going to be included in your cleanup patch series,
or do you want me to forward it?

Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.6 patch] fs/coda/: proper prototypes
  2006-01-23  0:15 ` Jan Harkes
@ 2006-01-23  0:36   ` Adrian Bunk
  0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-01-23  0:36 UTC (permalink / raw)
  To: linux-kernel

On Sun, Jan 22, 2006 at 07:15:28PM -0500, Jan Harkes wrote:
> On Sat, Jan 21, 2006 at 01:35:17AM +0100, Adrian Bunk wrote:
> > This patch introduces a file fs/coda/coda_int.h with proper prototypes 
> > for some code.
> > 
> > 
> > Signed-off-by: Adrian Bunk <bunk@stusta.de>
>   Acked-by: Jan Harkes <jaharkes@cs.cmu.edu>
> 
> Looks good. Is this going to be included in your cleanup patch series,
> or do you want me to forward it?

If you want you can forward it yourself.

Otherwise, I'll submit it through Andrew noting that it's 
maintainer-approved.

> Jan

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [2.6 patch] fs/coda/: proper prototypes
@ 2006-01-28 23:04 Adrian Bunk
  0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-01-28 23:04 UTC (permalink / raw)
  To: Andrew Morton; +Cc: jaharkes, linux-kernel

This patch introduces a file fs/coda/coda_int.h with proper prototypes 
for some code.


Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Jan Harkes <jaharkes@cs.cmu.edu>

---

This patch was already sent on:
- 21 Jan 2006

 fs/coda/coda_int.h |   13 +++++++++++++
 fs/coda/dir.c      |    3 ++-
 fs/coda/file.c     |    2 ++
 fs/coda/inode.c    |    2 ++
 fs/coda/psdev.c    |    9 ++-------
 5 files changed, 21 insertions(+), 8 deletions(-)

--- /dev/null	2005-11-08 19:07:57.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/coda_int.h	2006-01-21 01:06:23.000000000 +0100
@@ -0,0 +1,13 @@
+#ifndef _CODA_INT_
+#define _CODA_INT_
+
+extern struct file_system_type coda_fs_type;
+
+void coda_destroy_inodecache(void);
+int coda_init_inodecache(void);
+int coda_fsync(struct file *coda_file, struct dentry *coda_dentry,
+	       int datasync);
+
+#endif  /*  _CODA_INT_  */
+
+
--- linux-2.6.16-rc1-mm2-full/fs/coda/file.c.old	2006-01-21 01:02:36.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/file.c	2006-01-21 01:02:51.000000000 +0100
@@ -24,6 +24,8 @@
 #include <linux/coda_psdev.h>
 #include <linux/coda_proc.h>
 
+#include "coda_int.h"
+
 /* if CODA_STORE fails with EOPNOTSUPP, venus clearly doesn't support
  * CODA_STORE/CODA_RELEASE and we fall back on using the CODA_CLOSE upcall */
 static int use_coda_close;
--- linux-2.6.16-rc1-mm2-full/fs/coda/dir.c.old	2006-01-21 01:03:33.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/dir.c	2006-01-21 01:03:57.000000000 +0100
@@ -27,6 +27,8 @@
 #include <linux/coda_cache.h>
 #include <linux/coda_proc.h>
 
+#include "coda_int.h"
+
 /* dir inode-ops */
 static int coda_create(struct inode *dir, struct dentry *new, int mode, struct nameidata *nd);
 static struct dentry *coda_lookup(struct inode *dir, struct dentry *target, struct nameidata *nd);
@@ -50,7 +52,6 @@
 /* support routines */
 static int coda_venus_readdir(struct file *filp, filldir_t filldir,
 			      void *dirent, struct dentry *dir);
-int coda_fsync(struct file *, struct dentry *dentry, int datasync);
 
 /* same as fs/bad_inode.c */
 static int coda_return_EIO(void)
--- linux-2.6.16-rc1-mm2-full/fs/coda/inode.c.old	2006-01-21 01:04:12.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/inode.c	2006-01-21 01:04:28.000000000 +0100
@@ -31,6 +31,8 @@
 #include <linux/coda_fs_i.h>
 #include <linux/coda_cache.h>
 
+#include "coda_int.h"
+
 /* VFS super_block ops */
 static void coda_clear_inode(struct inode *);
 static void coda_put_super(struct super_block *);
--- linux-2.6.16-rc1-mm2-full/fs/coda/psdev.c.old	2006-01-21 01:04:36.000000000 +0100
+++ linux-2.6.16-rc1-mm2-full/fs/coda/psdev.c	2006-01-21 01:06:07.000000000 +0100
@@ -48,12 +48,9 @@
 #include <linux/coda_psdev.h>
 #include <linux/coda_proc.h>
 
-#define upc_free(r) kfree(r)
+#include "coda_int.h"
 
-/* 
- * Coda stuff
- */
-extern struct file_system_type coda_fs_type;
+#define upc_free(r) kfree(r)
 
 /* statistics */
 int           coda_hard;         /* allows signals during upcalls */
@@ -394,8 +391,6 @@
 MODULE_AUTHOR("Peter J. Braam <braam@cs.cmu.edu>");
 MODULE_LICENSE("GPL");
 
-extern int coda_init_inodecache(void);
-extern void coda_destroy_inodecache(void);
 static int __init init_coda(void)
 {
 	int status;


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-01-28 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21  0:35 [2.6 patch] fs/coda/: proper prototypes Adrian Bunk
2006-01-23  0:15 ` Jan Harkes
2006-01-23  0:36   ` Adrian Bunk
2006-01-28 23:04 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).