* 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;
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"
extern int do_delete_whiteouts(struct dentry *dentry, int bindex,
struct unionfs_dir_state *namelist);
-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);