commit 3407e729de14de1d23d33a9e6980962491ce32d3
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Fri Nov 16 13:47:28 2007 -0500
Unionfs: prototype and location change for unionfs_get_nlinks
Change prototype of unionfs_get_nlinks to take a const inode. Also move
extern for unionfs_get_nlinks so it can be refereed to in other Unionfs
header files.
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c
index dc2778a..f8ae0e5 100644
--- a/fs/unionfs/subr.c
+++ b/fs/unionfs/subr.c
@@ -66,7 +66,7 @@ out:
* returns the sum of the n_link values of all the underlying inodes of the
* passed inode
*/
-int unionfs_get_nlinks(struct inode *inode)
+int unionfs_get_nlinks(const struct inode *inode)
{
int sum_nlinks = 0;
int dirs = 0;
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index aeabc43..48ba4d1 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -209,6 +209,9 @@ struct unionfs_dir_state {
struct list_head list[0];
};
+/* externs needed for fanout.h or sioq.h */
+extern int unionfs_get_nlinks(const struct inode *inode);
+
/* include miscellaneous macros */
#include "fanout.h"
#include "sioq.h"
@@ -279,8 +282,6 @@ extern int copyup_dentry(struct inode *dir, struct dentry
*dentry,
extern void unionfs_inherit_mnt(struct dentry *dentry);
extern void unionfs_purge_extras(struct dentry *dentry);
-extern int unionfs_get_nlinks(struct inode *inode);
-
/* Is this directory empty: 0 if it is empty, -ENOTEMPTY if not. */
extern int check_empty(struct dentry *dentry,
struct unionfs_dir_state **namelist);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs