commit 1f5b8292b69d1e68b15ab7d7bdd043d5080161c6
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Thu May 31 22:32:08 2007 -0400
cleanup: reformat all lines longer than 80 characters
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/config.h b/fs/unionfs/config.h
index
a770c5cf1004597bdd1c4a7416938c19f0887d4c..410acc3118efa2a3054e0c1a9652f6e5305ba78c
100644
--- a/fs/unionfs/config.h
+++ b/fs/unionfs/config.h
@@ -17,35 +17,36 @@ #define TIMEOUT "timeout"
#define TIMEOUT_MIN 1
#define TIMEOUT_MAX 1000000
#define TIMEOUT_DEF 30
-#define TIMEOUT_INFO "defaults to %d seconds. Controls the interval when the
ODF\n" \
- "cleanup thread will wake up."
+#define TIMEOUT_INFO "defaults to %d seconds. Controls the interval when " \
+ "the ODF\ncleanup thread will wake up."
#define THRESH_BH "block_high_thresh"
#define THRESH_BH_MIN 1
#define THRESH_BH_MAX 99
#define THRESH_BH_DEF 80
-#define THRESH_BH_INFO "defaults to %d%%. The threshold of consumed disk
blocks in\n" \
- "/odf, above which we begin cleaning. Must be higher than the
value of\n" \
- THRESH_BL
+#define THRESH_BH_INFO "defaults to %d%%. The threshold of consumed disk " \
+ "blocks in\n/odf, above which we begin cleaning. Must be higher " \
+ "than the value of\n" THRESH_BL
#define THRESH_BL "block_low_thresh"
#define THRESH_BL_MIN 1
#define THRESH_BL_MAX 99
#define THRESH_BL_DEF 70
-#define THRESH_BL_INFO "defaults to %d%%. The threshold of consumed disk
blocks in\n" \
- "/odf, we try to bring the system to after we begin cleaning.
Must be\n" \
- "lower the value of " THRESH_BH
+#define THRESH_BL_INFO "defaults to %d%%. The threshold of consumed disk " \
+ "blocks in\n/odf, we try to bring the system to after we begin " \
+ "cleaning. Must be\nlower the value of " THRESH_BH
#define THRESH_IH "inode_high_thresh"
#define THRESH_IH_MIN 1
#define THRESH_IH_MAX 99
#define THRESH_IH_DEF 80
-#define THRESH_IH_INFO "defaults to %d%%. The threshold of consumed inodes in
/odf,\n" \
- "above which we begin cleaning. Must be higher than the value
of " THRESH_IL
+#define THRESH_IH_INFO "defaults to %d%%. The threshold of consumed inodes" \
+ " in /odf,\nabove which we begin cleaning. Must be higher than the " \
+ "value of " THRESH_IL
#define THRESH_IL "inode_low_thresh"
#define THRESH_IL_MIN 1
#define THRESH_IL_MAX 99
#define THRESH_IL_DEF 70
-#define THRESH_IL_INFO "defaults to %d%%. The threshold of consumed inodes in
/odf,\n" \
- "we try to bring the system to after we begin cleaning. Must be
lower than\n" \
- "the value of " THRESH_IH
+#define THRESH_IL_INFO "defaults to %d%%. The threshold of consumed inodes" \
+ " in /odf,\nwe try to bring the system to after we begin cleaning. " \
+ " Must be lower than\nthe value of " THRESH_IH
#define HELP_NAME "help"
struct unionfs_attribute {
diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c
index
520d7d8ce6b68d52c1455e3cc62d2897ae324282..d1cd68cfb20bed70dbc14d1d7263aead1ea12b00
100644
--- a/fs/unionfs/copyup.c
+++ b/fs/unionfs/copyup.c
@@ -439,7 +439,11 @@ #endif /* CONFIG_UNION_FS_XATTR */
if (!d_deleted(dentry))
unionfs_reinterpose(dentry);
- /*err = odf_copyup_link(sb, old_hidden_dentry, new_hidden_dentry,
old_bindex, new_bindex);*/
+#if 0
+ /* XXX: why was this commented out? */
+ err = odf_copyup_link(sb, old_hidden_dentry, new_hidden_dentry,
+ old_bindex, new_bindex);
+#endif
goto out_unlock;
diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index
a47eacb4b47bad1a8b3160113f55d6e393f0668f..3df2c27f6036323dd9bb6a08bf64dcf7b27ef051
100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -52,7 +52,8 @@ static int unionfs_readdir(struct file *
/* odf cache dir calls partial lookup which expects a locked
dentry */
unionfs_lock_dentry(file->f_dentry);
- err = odf_cache_dir(file->f_dentry, odf_cache,
&file->f_dentry->d_inode->i_mtime);
+ err = odf_cache_dir(file->f_dentry, odf_cache,
+ &file->f_dentry->d_inode->i_mtime);
unionfs_unlock_dentry(file->f_dentry);
if (err)
goto out;
diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c
index
cdce96d853942bc2929b549de0ce4dd1e317c929..65ca5feecfe9519f1df13d06c4c956062d8c99bd
100644
--- a/fs/unionfs/dirhelper.c
+++ b/fs/unionfs/dirhelper.c
@@ -307,7 +307,8 @@ out:
}
/* Cache contents of dir to an odf/ic file */
-int odf_cache_dir(struct dentry *d_upper, struct dentry *d_odf, struct
timespec *mtime)
+int odf_cache_dir(struct dentry *d_upper, struct dentry *d_odf,
+ struct timespec *mtime)
{
int err = 0;
struct dentry *hidden_dentry = NULL;
@@ -330,7 +331,10 @@ retry:
i_odf = d_odf->d_inode;
- /* compare mtimes, do not proceed if equal, do not check if retrying
after -ENOSPC */
+ /*
+ * compare mtimes, do not proceed if equal, do not check if retrying
+ * after -ENOSPC
+ */
if (i_odf && i_odf->i_size && !cleaned) {
if(timespec_compare(&i_odf->i_mtime,mtime) >= 0)
goto out;
@@ -497,7 +501,8 @@ out:
* b) silly rename if its not physically empty
* c) unlink if not a dir
*/
-int unionfs_force_rm(struct dentry *dentry, struct dentry **hidden_dentry, int
bindex)
+int unionfs_force_rm(struct dentry *dentry, struct dentry **hidden_dentry,
+ int bindex)
{
struct super_block *sb;
int err;
@@ -513,7 +518,8 @@ int unionfs_force_rm(struct dentry *dent
/* check if dir is empty */
branchget(sb, bindex);
- err = check_empty_lower(*hidden_dentry, unionfs_lower_mnt_idx(dentry,
bindex));
+ err = check_empty_lower(*hidden_dentry,
+ unionfs_lower_mnt_idx(dentry, bindex));
branchput(sb, bindex);
if (err == 0)
@@ -561,7 +567,8 @@ out:
* Returns 1 if it manages to bring inodes/block below requested,
* threshold and 0 if not.
*/
-int odf_cleanup(struct odf_sb_info *odf, int mode, u64 b_to_free, u64
i_to_free)
+int odf_cleanup(struct odf_sb_info *odf, int mode, u64 b_to_free,
+ u64 i_to_free)
{
int err = 0;
struct file *file;
diff --git a/fs/unionfs/export.c b/fs/unionfs/export.c
index
62a41fe76bc4baba53cab54ef5087253d3458eec..2b5ea27105ef329d23cf71a472550c5e83bcbbfb
100644
--- a/fs/unionfs/export.c
+++ b/fs/unionfs/export.c
@@ -16,7 +16,8 @@ #define is_anon(d) ((d)->d_flags & DCACH
extern struct export_operations export_op_default;
-static struct dentry *__get_parent(struct super_block *sb, struct dentry
*odf_dentry)
+static struct dentry *__get_parent(struct super_block *sb,
+ struct dentry *odf_dentry)
{
struct dentry *odf_root = UNIONFS_D(sb->s_root)->odf.dentry;
struct dentry *d, *d_parent, *parent, *child = NULL;
@@ -34,7 +35,8 @@ static struct dentry *__get_parent(struc
return ERR_PTR(-ENOMEM);
/* unionfs_get_parent already checks for this */
- BUG_ON(!odf_root->d_sb->s_export_op ||
!odf_root->d_sb->s_export_op->get_parent);
+ BUG_ON(!odf_root->d_sb->s_export_op ||
+ !odf_root->d_sb->s_export_op->get_parent);
__odf_dstack_init(&stack, 8);
if (!stack.item)
@@ -175,7 +177,8 @@ out:
* searches the cached dir in odf to find a dirent with
* the same inode number as the child, and returns that.
*/
-static int unionfs_get_name(struct dentry *dentry, char *name, struct dentry
*child)
+static int unionfs_get_name(struct dentry *dentry, char *name,
+ struct dentry *child)
{
int err;
struct inode *dir = dentry->d_inode;
diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index
0b48dd48928429152e5b7eab61ce4b160747122d..cfed27d8010f945f5d7792f114d5d06610583630
100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -26,7 +26,8 @@ #include <linux/moduleparam.h>
*
* @sb: unionfs's super_block
*/
-struct dentry *unionfs_interpose(struct dentry *dentry, struct super_block
*sb, int flag)
+struct dentry *unionfs_interpose(struct dentry *dentry, struct super_block *sb,
+ int flag)
{
struct inode *hidden_inode;
struct dentry *hidden_dentry;
@@ -630,7 +631,8 @@ static int unionfs_read_super(struct sup
if (!odf_is_new(odf)) {
odf_options = odf_read_sb_data(odf, &bid);
if (IS_ERR(odf_options)) {
- printk(KERN_WARNING "unionfs_read_super: could not load
options from odf\n");
+ printk(KERN_WARNING "unionfs_read_super: could not "
+ "load options from odf\n");
err = PTR_ERR(odf_options);
odf_options = NULL;
goto out_free_odf;
diff --git a/fs/unionfs/mmap.c b/fs/unionfs/mmap.c
index
82d409518db541ab0aec885fac2d53f6afbc5975..1c90f15a5a4096001ebc0a3d598174294b549830
100644
--- a/fs/unionfs/mmap.c
+++ b/fs/unionfs/mmap.c
@@ -10,7 +10,7 @@
* Copyright (c) 2003 Puja Gupta
* Copyright (c) 2003 Harikesavan Krishnan
* Copyright (c) 2003-2007 Stony Brook University
- * Copyright (c) 2003-2007 The Research Foundation of State University of New
York
+ * Copyright (c) 2003-2007 The Research Foundation of SUNY
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index
dc4d8e959e4ee3272946388aba6914fe6d002d3e..cf5b0bc8c5f11584885899e9689cfcebf50634ca
100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -16,7 +16,8 @@ #include "odf_internals.h"
/* Create a directory in odf
* Fails if the directory already exists
*/
-static inline struct dentry * __odf_create_dir(struct dentry *parent, char
*name)
+static inline struct dentry * __odf_create_dir(struct dentry *parent,
+ char *name)
{
struct dentry *dentry = NULL;
int err;
@@ -682,11 +683,12 @@ out:
}
/*
- * Update the original inode's copyup info in the link file, and then for each
entry
- * in the file, create parent hierarchies in the copied up branch and link to
the new_dentry
+ * Update the original inode's copyup info in the link file, and then for
+ * each entry in the file, create parent hierarchies in the copied up branch
+ * and link to the new_dentry
*/
-int odf_copyup_link(struct super_block *sb, struct dentry *old_dentry, struct
dentry *new_dentry,
- int old_branch, int new_branch)
+int odf_copyup_link(struct super_block *sb, struct dentry *old_dentry,
+ struct dentry *new_dentry, int old_branch, int new_branch)
{
char *name, *uuid;
struct dentry *links = NULL;
@@ -698,7 +700,10 @@ int odf_copyup_link(struct super_block *
__le32 le32;
BUG_ON(S_ISDIR(old_dentry->d_inode->i_mode));
- /* do nothing if this has no links? or should we actually check if it
has a link file? */
+ /*
+ * do nothing if this has no links? or should we actually check if
+ * it has a link file?
+ */
if (old_dentry->d_inode->i_nlink <= 1)
return 0;
@@ -778,10 +783,12 @@ out:
return err;
}
-/* Checks the link file if the hard link was copied up, and if yes tries to
link to the
- * copied up inode in the copied up branch.
+/*
+ * Checks the link file if the hard link was copied up, and if yes tries to
+ * link to the copied up inode in the copied up branch.
*/
-int __check_link_copyup(struct file *link_file, struct dentry *dentry, int
branch_src)
+int __check_link_copyup(struct file *link_file, struct dentry *dentry,
+ int branch_src)
{
struct dentry *lower_dentry;
int err, bid = -1;
@@ -895,10 +902,13 @@ skip:
;
}
- /* case 3:
- * - dst to the right of src, because of moving branches, so if the
file was already
- * copied up before the branch manipulation; it would now be hidden
by the old non-copied up
- * version of the file.
+ /*
+ * case 3:
+ *
+ * - dst to the right of src, because of moving branches, so if the
+ * file was already copied up before the branch manipulation; it
+ * would now be hidden by the old non-copied up version of the file.
+ *
* - Do nothing!
*/
else if (branch_dst < branch_src) {
@@ -1053,7 +1063,8 @@ out:
* @len: length of the name
* @flags: ODF_LOOKUP_ flags (see above)
*/
-struct dentry *odf_lookup_name(struct dentry *parent, const char *name, int
len, int flags)
+struct dentry *odf_lookup_name(struct dentry *parent, const char *name,
+ int len, int flags)
{
return __odf_lookup(parent, NULL, name, len, flags, NULL);
}
@@ -1228,7 +1239,8 @@ struct dentry *odf_ic_cache_dentry(struc
* Returns odf_dentry_info pointing to the location in odf/ic
* for the requested file name
*/
-struct dentry *odf_ic_dentry(struct odf_sb_info *osi, u64 ino, char *name, int
namelen)
+struct dentry *odf_ic_dentry(struct odf_sb_info *osi, u64 ino, char *name,
+ int namelen)
{
struct dentry *dirs[4], *ic, *ret = NULL;
int breakdown[4];
@@ -1614,8 +1626,9 @@ int odf_is_new(struct odf_sb_info *osi)
* Generates uuids for branches and makes sure branches belonging to the same
* file system get the same UUID.
*/
-int odf_update_uuids(struct odf_sb_info *odf, struct path *old_paths, int
old_branches,
- struct path *new_paths, int new_branches)
+int odf_update_uuids(struct odf_sb_info *odf, struct path *old_paths,
+ int old_branches, struct path *new_paths,
+ int new_branches)
{
struct vfsmount *m;
char *old_uuids = odf->branch_uuids;
@@ -1673,7 +1686,8 @@ out:
* then for each branch:
* branch id, absolute path len, absolute path, perms, uuids
*/
-int odf_write_sb_data(struct odf_sb_info *osi, struct unionfs_data *data,
struct path *lower_paths, int branches)
+int odf_write_sb_data(struct odf_sb_info *osi, struct unionfs_data *data,
+ struct path *lower_paths, int branches)
{
struct dentry *d, *d_content;
struct vfsmount *m, *odf_mnt;
diff --git a/fs/unionfs/odf.h b/fs/unionfs/odf.h
index
21bb649eede5b866b831828d2bc3dde31f530e9a..0ffba5694400ebe30db46cfcf46362c4e31fec7d
100644
--- a/fs/unionfs/odf.h
+++ b/fs/unionfs/odf.h
@@ -37,30 +37,37 @@ #define ODF_CONTENT_LEN (sizeof(ODF_CONT
extern int odf_read_super(struct super_block *sb, char *data);
extern void odf_put_super(struct odf_sb_info *osi);
extern char *odf_read_sb_data(struct odf_sb_info *odf_sb, int **bid);
-extern int odf_write_sb_data(struct odf_sb_info *osi, struct unionfs_data
*data,
- struct path *lower_paths, int branches);
+extern int odf_write_sb_data(struct odf_sb_info *osi,
+ struct unionfs_data *data,
+ struct path *lower_paths, int branches);
extern int odf_is_new(struct odf_sb_info *osi);
-extern int odf_update_uuids(struct odf_sb_info *odf, struct path *old_paths,
int old_branches,
- struct path *new_paths, int new_branches);
+extern int odf_update_uuids(struct odf_sb_info *odf, struct path *old_paths,
+ int old_branches, struct path *new_paths,
+ int new_branches);
/* lookup */
extern int odf_lookup(struct dentry *parent, struct dentry *dentry, int flags);
-extern struct dentry *odf_lookup_name(struct dentry *parent, const char *name,
int len, int flags);
+extern struct dentry *odf_lookup_name(struct dentry *parent, const char *name,
+ int len, int flags);
/* dirents & dir cache */
extern struct dentry *odf_ic_cache_dentry(struct dentry *dir);
-extern int odf_write_dirent(struct file *filp, const char *name, int namelen,
u64 ino, unsigned int d_type);
-extern int odf_read_dirent(struct file *filp, char **name, int *namelen, u64
*ino, unsigned int *d_type);
+extern int odf_write_dirent(struct file *filp, const char *name, int namelen,
+ u64 ino, unsigned int d_type);
+extern int odf_read_dirent(struct file *filp, char **name, int *namelen,
+ u64 *ino, unsigned int *d_type);
extern int odf_purge_dir_cache(struct dentry *dentry);
-extern int odf_cache_dir(struct dentry *d_upper, struct dentry *d_odf, struct
timespec *mtime);
+extern int odf_cache_dir(struct dentry *d_upper, struct dentry *d_odf,
+ struct timespec *mtime);
extern int odf_release_sr(struct inode *inode);
/* various i-ops */
extern int odf_rename(struct dentry *old_dentry, struct dentry *new_dentry);
extern int odf_link(struct dentry *old_dentry, struct dentry *new_dentry);
-extern int odf_copyup_link(struct super_block *sb, struct dentry *old_dentry,
struct dentry *new_dentry,
- int old_branch, int new_branch);
+extern int odf_copyup_link(struct super_block *sb, struct dentry *old_dentry,
+ struct dentry *new_dentry,
+ int old_branch, int new_branch);
/* unlink */
extern int odf_remove(struct dentry *dentry, int flags);
diff --git a/fs/unionfs/odf_internals.h b/fs/unionfs/odf_internals.h
index
b872548c281b27282ef2bf7ae59552cd4475f93d..046d8d5b0096718d59ed559f79ecc3ab360c1d80
100644
--- a/fs/unionfs/odf_internals.h
+++ b/fs/unionfs/odf_internals.h
@@ -57,7 +57,8 @@ static inline int __odf_is_wh(struct odf
int odf_set_opaque(struct dentry *odf_dentry, int branch);
/* cleanup thread functions */
-int odf_cleanup(struct odf_sb_info *odf, int mode, u64 b_to_free, u64
i_to_free);
+int odf_cleanup(struct odf_sb_info *odf, int mode, u64 b_to_free,
+ u64 i_to_free);
extern void generate_random_uuid(unsigned char uuid_out[16]);
diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index
ac925c4c39f4410a8f95b48173ca98ab06f10c65..31cf08a264e95af4059c095aa41dbdb29bbfb97d
100644
--- a/fs/unionfs/rename.c
+++ b/fs/unionfs/rename.c
@@ -284,7 +284,8 @@ revert:
goto revert_out;
}
- local_err = __unionfs_rename(new_dir, new_dentry, old_dir, old_dentry,
old_bstart);
+ local_err = __unionfs_rename(new_dir, new_dentry, old_dir,
+ old_dentry, old_bstart);
/* If we can't fix it, then we cop-out with -EIO. */
if (local_err) {
diff --git a/fs/unionfs/sioq.c b/fs/unionfs/sioq.c
index
44d347aeb00df08aa1abe3978dac464f87a7c761..e263f5e2b302e86a60ebd67b7abe3dab39985867
100644
--- a/fs/unionfs/sioq.c
+++ b/fs/unionfs/sioq.c
@@ -89,7 +89,8 @@ int __run_sioa(void *args)
* and terminates if done, otherwise repeats the loop.
* The done function should return 0 if not done.
*/
-void run_sioa(struct sioa_args *args, void (*work) (void*), signed long
timeout)
+void run_sioa(struct sioa_args *args, void (*work) (void*),
+ signed long timeout)
{
init_completion(&args->comp_thread);
mutex_init(&args->lock);
diff --git a/fs/unionfs/sioq.h b/fs/unionfs/sioq.h
index
3132f6ede9e1252eaff9b1f4f379a81056a28b96..65c34130575506a01b23b150795051f7c86e6173
100644
--- a/fs/unionfs/sioq.h
+++ b/fs/unionfs/sioq.h
@@ -91,7 +91,8 @@ struct sioa_args {
extern int __init init_sioq(void);
extern __exit void stop_sioq(void);
extern void run_sioq(work_func_t func, struct sioq_args *args);
-extern void run_sioa(struct sioa_args *args, void (*work) (void*), signed long
timeout);
+extern void run_sioa(struct sioa_args *args, void (*work) (void*),
+ signed long timeout);
extern void wake_up_and_wait_sioa(struct sioa_args *args);
extern void wake_up_sioa(struct sioa_args *args);
extern void complete_sioa(struct sioa_args *args);
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index
f84e1d8b7546407748a0bcde2e725a70d02e982a..b0c7e4775b90cc45ed47bfdf3175df272b66401f
100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -220,10 +220,12 @@ extern int unionfs_init_dentry_cache(voi
extern void unionfs_destroy_dentry_cache(void);
/* Initialize and free readdir-specific state. */
-extern struct unionfs_dir_state *alloc_rdstate(struct inode *inode, int
bindex);
+extern struct unionfs_dir_state *alloc_rdstate(struct inode *inode,
+ int bindex);
extern void free_rdstate(struct unionfs_dir_state *state);
-extern int add_filldir_node(struct unionfs_dir_state *rdstate, const char
*name,
- int namelen, int bindex, int whiteout);
+extern int add_filldir_node(struct unionfs_dir_state *rdstate,
+ const char *name, int namelen, int bindex,
+ int whiteout);
extern struct filldir_node *find_filldir_node(struct unionfs_dir_state
*rdstate,
const char *name, int namelen);
#define MAXRDCOOKIE (0xfff)
@@ -279,7 +281,8 @@ extern int unionfs_get_nlinks(struct ino
/* Is this directory empty: 0 if it is empty, -ENOTEMPTY if not. */
extern int check_empty(struct dentry *dentry,
struct unionfs_dir_state **namelist);
-extern int check_empty_lower(struct dentry *lower_dentry, struct vfsmount
*mnt);
+extern int check_empty_lower(struct dentry *lower_dentry,
+ struct vfsmount *mnt);
/* Re-lookup a hidden dentry. */
extern int unionfs_refresh_hidden_dentry(struct dentry *dentry, int bindex);
@@ -306,7 +309,8 @@ extern int unionfs_unlink(struct inode *
extern int unionfs_rmdir(struct inode *dir, struct dentry *dentry);
int __unionfs_d_revalidate_chain(struct dentry *dentry, struct nameidata *nd);
-int unionfs_force_rm(struct dentry *dentry, struct dentry **hidden_dentry, int
bindex);
+int unionfs_force_rm(struct dentry *dentry, struct dentry **hidden_dentry,
+ int bindex);
int unionfs_silly_rename(struct dentry *dentry, struct dentry *hidden_dentry);
/* The values for unionfs_interpose's flag. */
@@ -504,7 +508,10 @@ #endif /* UNIONFS_DEBUG */
mntput(mnt);
}
-/* a stack for dentries amd its ops, used by odf cleanup thread and get_parent
*/
+/*
+ * a stack for dentries amd its ops, used by odf cleanup thread and
+ * get_parent
+ */
struct dentry_stack {
struct dentry **item;
int n;
@@ -520,7 +527,8 @@ static inline void __odf_dstack_init(str
stack->item = kmalloc(stack->size * sizeof(struct dentry *),
GFP_KERNEL);
}
-static inline int __odf_dstack_push(struct dentry_stack *stack, struct dentry
*dentry)
+static inline int __odf_dstack_push(struct dentry_stack *stack,
+ struct dentry *dentry)
{
stack->item[stack->n++] = dentry;
if (stack->n == stack->size)
@@ -541,16 +549,21 @@ #ifdef UNIONFS_DEBUG
/* useful for tracking code reachability */
#define UDBG printk("DBG:%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__)
-#define unionfs_check_inode(i)
__unionfs_check_inode((i),__FILE__,__FUNCTION__,__LINE__)
-#define unionfs_check_dentry(d)
__unionfs_check_dentry((d),__FILE__,__FUNCTION__,__LINE__)
-#define unionfs_check_file(f)
__unionfs_check_file((f),__FILE__,__FUNCTION__,__LINE__)
-#define show_branch_counts(sb)
__show_branch_counts((sb),__FILE__,__FUNCTION__,__LINE__)
-extern void __unionfs_check_inode(const struct inode *inode,
- const char *fname, const char *fxn, int line);
+#define unionfs_check_inode(i) __unionfs_check_inode((i),\
+ __FILE__,__FUNCTION__,__LINE__)
+#define unionfs_check_dentry(d) __unionfs_check_dentry((d),\
+ __FILE__,__FUNCTION__,__LINE__)
+#define unionfs_check_file(f) __unionfs_check_file((f),\
+ __FILE__,__FUNCTION__,__LINE__)
+#define show_branch_counts(sb) __show_branch_counts((sb),\
+ __FILE__,__FUNCTION__,__LINE__)
+extern void __unionfs_check_inode(const struct inode *inode, const char *fname,
+ const char *fxn, int line);
extern void __unionfs_check_dentry(const struct dentry *dentry,
- const char *fname, const char *fxn, int
line);
-extern void __unionfs_check_file(const struct file *file,
- const char *fname, const char *fxn, int line);
+ const char *fname, const char *fxn,
+ int line);
+extern void __unionfs_check_file(const struct file *file, const char *fname,
+ const char *fxn, int line);
extern void __show_branch_counts(const struct super_block *sb,
const char *file, const char *fxn, int line);
diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index
8302b1f17785f8dca95cb2389bd262e36ca679f4..a3fc8e4d6c14530e799694f979de617b0744457d
100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -166,7 +166,10 @@ static int unionfs_do_rmdir(struct inode
if (err)
break;
}
- /* FIXME: create wh for opaque dirs as well? or force to check all
branches? */
+ /*
+ * FIXME: create wh for opaque dirs as well? or force to check all
+ * branches?
+ */
if (err || odf_get_opaque(dentry) != 1) {
if (err == -EIO)
printk(KERN_WARNING
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs