commit de0f0368d421a164f56ddc45bdd5f908e41eb574
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Sat Apr 21 11:38:51 2007 -0400

    coding-style: indent every line properly
    
    Conflicts:
    
        fs/unionfs/dirfops.c
        fs/unionfs/dirhelper.c
        fs/unionfs/inode.c
        fs/unionfs/lookup.c
        fs/unionfs/rename.c
        fs/unionfs/sioq.c
        fs/unionfs/subr.c
        fs/unionfs/union.h

diff --git a/fs/stack.c b/fs/stack.c
index 67716f6..9aee8fc 100644
--- a/fs/stack.c
+++ b/fs/stack.c
@@ -18,7 +18,7 @@ EXPORT_SYMBOL_GPL(fsstack_copy_inode_size);
  * copying
  */
 void fsstack_copy_attr_all(struct inode *dest, const struct inode *src,
-                               int (*get_nlinks)(struct inode *))
+                          int (*get_nlinks)(struct inode *))
 {
        dest->i_mode = src->i_mode;
        dest->i_uid = src->i_uid;
diff --git a/fs/unionfs/branchman.c b/fs/unionfs/branchman.c
index 6912be9..dc0a5c5 100644
--- a/fs/unionfs/branchman.c
+++ b/fs/unionfs/branchman.c
@@ -57,4 +57,3 @@ out:
        unionfs_unlock_dentry(dentry);
        return err < 0 ? err : bend;
 }
-
diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index b70dc55..ab17ccc 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -39,7 +39,7 @@ static int copyup_deleted_file(struct file *file, struct 
dentry *dentry,
        hidden_dentry = unionfs_lower_dentry_idx(dentry, bstart);
 
        sprintf(name, ".unionfs%*.*lx",
-                       i_inosize, i_inosize, hidden_dentry->d_inode->i_ino);
+               i_inosize, i_inosize, hidden_dentry->d_inode->i_ino);
 
        /*
         * Loop, looking for an unused temp name to copyup to.
@@ -59,7 +59,7 @@ static int copyup_deleted_file(struct file *file, struct 
dentry *dentry,
                sprintf(suffix, "%*.*x", countersize, countersize, counter);
 
                printk(KERN_DEBUG "unionfs: trying to rename %s to %s\n",
-                               dentry->d_name.name, name);
+                      dentry->d_name.name, name);
 
                tmp_dentry = lookup_one_len(name, hidden_dentry->d_parent,
                                            UNIONFS_TMPNAM_LEN);
@@ -241,8 +241,8 @@ static int open_all_files(struct file *file)
                unionfs_read_unlock(sb);
 
                hidden_file = dentry_open(hidden_dentry,
-                               unionfs_lower_mnt_idx(dentry, bindex),
-                               file->f_flags);
+                                         unionfs_lower_mnt_idx(dentry, bindex),
+                                         file->f_flags);
                if (IS_ERR(hidden_file)) {
                        err = PTR_ERR(hidden_file);
                        goto out;
@@ -277,7 +277,7 @@ static int open_highest_file(struct file *file, int 
willwrite)
                                break;
                }
                atomic_set(&UNIONFS_F(file)->generation,
-                       atomic_read(&UNIONFS_I(dentry->d_inode)->generation));
+                          
atomic_read(&UNIONFS_I(dentry->d_inode)->generation));
                goto out;
        }
 
@@ -287,7 +287,7 @@ static int open_highest_file(struct file *file, int 
willwrite)
        branchget(sb, bstart);
        unionfs_read_unlock(sb);
        hidden_file = dentry_open(hidden_dentry,
-                       unionfs_lower_mnt_idx(dentry, bstart), file->f_flags);
+                                 unionfs_lower_mnt_idx(dentry, bstart), 
file->f_flags);
        if (IS_ERR(hidden_file)) {
                err = PTR_ERR(hidden_file);
                goto out;
@@ -315,7 +315,7 @@ static int do_delayed_copyup(struct file *file, struct 
dentry *dentry)
        for (bindex = bstart - 1; bindex >= 0; bindex--) {
                if (!d_deleted(file->f_dentry))
                        err = copyup_file(parent_inode, file, bstart,
-                                       bindex, inode_size);
+                                         bindex, inode_size);
                else
                        err = copyup_deleted_file(file, dentry, bstart, bindex);
 
@@ -417,7 +417,7 @@ int unionfs_file_revalidate(struct file *file, int 
willwrite)
            !IS_WRITE_FLAG(unionfs_lower_file(file)->f_flags) &&
            is_robranch(dentry)) {
                printk(KERN_DEBUG "Doing delayed copyup of a read-write "
-                                 "file on a read-only branch.\n");
+                      "file on a read-only branch.\n");
                err = do_delayed_copyup(file, dentry);
        }
 
@@ -453,8 +453,8 @@ static int __open_dir(struct inode *inode, struct file 
*file)
                dget(hidden_dentry);
                unionfs_mntget(file->f_dentry, bindex);
                hidden_file = dentry_open(hidden_dentry,
-                               unionfs_lower_mnt_idx(file->f_dentry, bindex),
-                               file->f_flags);
+                                         unionfs_lower_mnt_idx(file->f_dentry, 
bindex),
+                                         file->f_flags);
                if (IS_ERR(hidden_file))
                        return PTR_ERR(hidden_file);
 
@@ -508,7 +508,7 @@ static int __open_file(struct inode *inode, struct file 
*file)
                        /* copyup the file */
                        for (bindex = bstart - 1; bindex >= 0; bindex--) {
                                err = 
copyup_file(file->f_dentry->d_parent->d_inode,
-                                               file, bstart, bindex, size);
+                                                 file, bstart, bindex, size);
                                if (!err)
                                        break;
                        }
diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c
index 7fe6728..e5e7158 100644
--- a/fs/unionfs/copyup.c
+++ b/fs/unionfs/copyup.c
@@ -85,7 +85,7 @@ static int copyup_xattrs(struct dentry *old_hidden_dentry,
                        goto out;
                name_list += strlen(name_list) + 1;
        }
-      out:
+out:
        name_list = name_list_orig;
 
        if (name_list)
@@ -118,8 +118,8 @@ static int copyup_permissions(struct super_block *sb,
        newattrs.ia_mode = i->i_mode;
 
        newattrs.ia_valid = ATTR_CTIME | ATTR_ATIME | ATTR_MTIME |
-           ATTR_ATIME_SET | ATTR_MTIME_SET | ATTR_FORCE |
-           ATTR_GID | ATTR_UID | ATTR_MODE;
+               ATTR_ATIME_SET | ATTR_MTIME_SET | ATTR_FORCE |
+               ATTR_GID | ATTR_UID | ATTR_MODE;
 
        err = notify_change(new_hidden_dentry, &newattrs);
 
@@ -184,7 +184,7 @@ static int __copyup_ndentry(struct dentry 
*old_hidden_dentry,
                err = args.err;
        } else {
                printk(KERN_ERR "Unknown inode type %d\n",
-                               old_mode);
+                      old_mode);
                BUG();
        }
 
@@ -211,8 +211,8 @@ static int __copyup_reg_data(struct dentry *dentry,
        branchget(sb, old_bindex);
        unionfs_read_unlock(sb);
        input_file = dentry_open(old_hidden_dentry,
-                               unionfs_lower_mnt_idx(dentry, old_bindex),
-                               O_RDONLY | O_LARGEFILE);
+                                unionfs_lower_mnt_idx(dentry, old_bindex),
+                                O_RDONLY | O_LARGEFILE);
        if (IS_ERR(input_file)) {
                dput(old_hidden_dentry);
                err = PTR_ERR(input_file);
@@ -230,8 +230,8 @@ static int __copyup_reg_data(struct dentry *dentry,
        branchget(sb, new_bindex);
        unionfs_read_unlock(sb);
        output_file = dentry_open(new_hidden_dentry,
-                               unionfs_lower_mnt_idx(dentry, new_bindex),
-                               O_WRONLY | O_LARGEFILE);
+                                 unionfs_lower_mnt_idx(dentry, new_bindex),
+                                 O_WRONLY | O_LARGEFILE);
        if (IS_ERR(output_file)) {
                err = PTR_ERR(output_file);
                goto out_close_in2;
@@ -265,19 +265,19 @@ static int __copyup_reg_data(struct dentry *dentry,
                len -= PAGE_SIZE;
 
                read_bytes =
-                   input_file->f_op->read(input_file,
-                                          (char __user *)buf, size,
-                                          &input_file->f_pos);
+                       input_file->f_op->read(input_file,
+                                              (char __user *)buf, size,
+                                              &input_file->f_pos);
                if (read_bytes <= 0) {
                        err = read_bytes;
                        break;
                }
 
                write_bytes =
-                   output_file->f_op->write(output_file,
-                                            (char __user *)buf,
-                                            read_bytes,
-                                            &output_file->f_pos);
+                       output_file->f_op->write(output_file,
+                                                (char __user *)buf,
+                                                read_bytes,
+                                                &output_file->f_pos);
                if ((write_bytes < 0) || (write_bytes < read_bytes)) {
                        err = write_bytes;
                        break;
@@ -387,9 +387,9 @@ static int copyup_named_dentry(struct inode *dir, struct 
dentry *dentry,
                oldfs = get_fs();
                set_fs(KERNEL_DS);
                err = old_hidden_dentry->d_inode->i_op->readlink(
-                                       old_hidden_dentry,
-                                       (char __user *)symbuf,
-                                       PATH_MAX);
+                       old_hidden_dentry,
+                       (char __user *)symbuf,
+                       PATH_MAX);
                set_fs(oldfs);
                if (err) {
                        __clear(dentry, old_hidden_dentry,
@@ -417,7 +417,7 @@ static int copyup_named_dentry(struct inode *dir, struct 
dentry *dentry,
        /* We actually copyup the file here. */
        if (S_ISREG(old_hidden_dentry->d_inode->i_mode))
                err = __copyup_reg_data(dentry, new_hidden_dentry, new_bindex,
-                               old_hidden_dentry, old_bindex, copyup_file, 
len);
+                                       old_hidden_dentry, old_bindex, 
copyup_file, len);
        if (err)
                goto out_unlink;
 
@@ -586,7 +586,7 @@ static void __set_inode(struct dentry * upper, struct 
dentry * lower,
                        int bindex)
 {
        unionfs_set_lower_inode_idx(upper->d_inode, bindex,
-                       igrab(lower->d_inode));
+                                   igrab(lower->d_inode));
        if (likely(ibstart(upper->d_inode) > bindex))
                ibstart(upper->d_inode) = bindex;
        if (likely(ibend(upper->d_inode) < bindex))
@@ -703,8 +703,8 @@ static struct dentry *create_parents_named(struct inode 
*dir,
                if (child_dentry != dentry) {
                        /* lookup child in the underlying file system */
                        hidden_dentry =
-                           lookup_one_len(childname, hidden_parent_dentry,
-                                          childnamelen);
+                               lookup_one_len(childname, hidden_parent_dentry,
+                                              childnamelen);
                        if (IS_ERR(hidden_dentry))
                                goto out;
                } else {
@@ -713,8 +713,8 @@ static struct dentry *create_parents_named(struct inode 
*dir,
                         * lookup the whiteout child in the underlying file 
system
                         */
                        hidden_dentry =
-                           lookup_one_len(name, hidden_parent_dentry,
-                                          strlen(name));
+                               lookup_one_len(name, hidden_parent_dentry,
+                                              strlen(name));
                        if (IS_ERR(hidden_dentry))
                                goto out;
 
@@ -746,7 +746,7 @@ static struct dentry *create_parents_named(struct inode 
*dir,
 
                        if (!err)
                                err = copyup_permissions(dir->i_sb,
-                                               child_dentry, hidden_dentry);
+                                                        child_dentry, 
hidden_dentry);
                        unlock_dir(hidden_parent_dentry);
                        if (err) {
                                dput(hidden_dentry);
@@ -766,4 +766,3 @@ out:
        kfree(path);
        return hidden_dentry;
 }
-
diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 9eb143d..2369cf8 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -79,7 +79,7 @@ static int __unionfs_d_revalidate_one(struct dentry *dentry, 
struct nameidata *n
                        struct dentry *hidden_dentry;
                        for (bindex = bstart; bindex <= bend; bindex++) {
                                hidden_dentry =
-                                   unionfs_lower_dentry_idx(dentry, bindex);
+                                       unionfs_lower_dentry_idx(dentry, 
bindex);
                                dput(hidden_dentry);
                        }
                }
@@ -106,8 +106,8 @@ static int __unionfs_d_revalidate_one(struct dentry 
*dentry, struct nameidata *n
                                struct inode *hidden_inode;
                                for (bindex = bstart; bindex <= bend; bindex++) 
{
                                        hidden_inode =
-                                           
unionfs_lower_inode_idx(dentry->d_inode,
-                                                       bindex);
+                                               
unionfs_lower_inode_idx(dentry->d_inode,
+                                                                       bindex);
                                        iput(hidden_inode);
                                }
                        }
@@ -159,10 +159,10 @@ static int __unionfs_d_revalidate_one(struct dentry 
*dentry, struct nameidata *n
 
        if (valid) {
                fsstack_copy_attr_all(dentry->d_inode,
-                               unionfs_lower_inode(dentry->d_inode),
-                               unionfs_get_nlinks);
+                                     unionfs_lower_inode(dentry->d_inode),
+                                     unionfs_get_nlinks);
                fsstack_copy_inode_size(dentry->d_inode,
-                               unionfs_lower_inode(dentry->d_inode));
+                                       unionfs_lower_inode(dentry->d_inode));
        }
 
 out:
@@ -247,7 +247,7 @@ int __unionfs_d_revalidate_chain(struct dentry *dentry, 
struct nameidata *nd)
        }
 
 
- out_this:
+out_this:
        /* finally, lock this dentry and revalidate it */
        verify_locked(dentry);
        dgen = atomic_read(&UNIONFS_D(dentry)->generation);
@@ -260,7 +260,7 @@ int __unionfs_d_revalidate_chain(struct dentry *dentry, 
struct nameidata *nd)
                        unionfs_mntput(dentry, bindex);
        }
 
- out_free:
+out_free:
        /* unlock/dput all dentries in chain and return status */
        if (chain_len > 0) {
                for (i=0; i<chain_len; i++) {
@@ -268,7 +268,7 @@ int __unionfs_d_revalidate_chain(struct dentry *dentry, 
struct nameidata *nd)
                }
                kfree(chain);
        }
- out:
+out:
        return valid;
 }
 
@@ -330,4 +330,3 @@ struct dentry_operations unionfs_dops = {
        .d_revalidate   = unionfs_d_revalidate,
        .d_release      = unionfs_d_release,
 };
-
diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index df80a1d..9ee5672 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -134,4 +134,3 @@ struct file_operations unionfs_dir_fops = {
        .release        = unionfs_file_release,
        .flush          = unionfs_flush,
 };
-
diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c
index a8cf8d0..1f9b704 100644
--- a/fs/unionfs/dirhelper.c
+++ b/fs/unionfs/dirhelper.c
@@ -274,8 +274,8 @@ int check_empty(struct dentry *dentry, struct 
unionfs_dir_state **namelist)
                branchget(sb, bindex);
                unionfs_read_unlock(sb);
                hidden_file =
-                   dentry_open(hidden_dentry, unionfs_lower_mnt_idx(dentry, 
bindex),
-                               O_RDONLY);
+                       dentry_open(hidden_dentry, 
unionfs_lower_mnt_idx(dentry, bindex),
+                                   O_RDONLY);
                if (IS_ERR(hidden_file)) {
                        err = PTR_ERR(hidden_file);
                        dput(hidden_dentry);
diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h
index 43c73e1..65af074 100644
--- a/fs/unionfs/fanout.h
+++ b/fs/unionfs/fanout.h
@@ -101,7 +101,7 @@ static inline struct inode *unionfs_lower_inode_idx(const 
struct inode *i, int i
 }
 
 static inline void unionfs_set_lower_inode_idx(struct inode *i, int index,
-                                  struct inode *val)
+                                              struct inode *val)
 {
        UNIONFS_I(i)->lower_inodes[index] = val;
 }
@@ -123,7 +123,7 @@ static inline struct super_block 
*unionfs_lower_super_idx(const struct super_blo
 }
 
 static inline void unionfs_set_lower_super_idx(struct super_block *sb, int 
index,
-                                  struct super_block *val)
+                                              struct super_block *val)
 {
        UNIONFS_SB(sb)->data[index].sb = val;
 }
@@ -181,7 +181,7 @@ static inline void set_dbend(struct dentry *dent, int val)
 }
 
 static inline void unionfs_set_lower_dentry_idx(struct dentry *dent, int index,
-                                  struct dentry *val)
+                                               struct dentry *val)
 {
        UNIONFS_D(dent)->lower_paths[index].dentry = val;
 }
@@ -197,7 +197,7 @@ static inline struct dentry *unionfs_lower_dentry(const 
struct dentry *dent)
 }
 
 static inline void unionfs_set_lower_mnt_idx(struct dentry *dent, int index,
-                                  struct vfsmount *mnt)
+                                            struct vfsmount *mnt)
 {
        UNIONFS_D(dent)->lower_paths[index].mnt = mnt;
 }
diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c
index baeddab..be18c46 100644
--- a/fs/unionfs/file.c
+++ b/fs/unionfs/file.c
@@ -263,4 +263,3 @@ struct file_operations unionfs_main_fops = {
        .fsync          = unionfs_fsync,
        .fasync         = unionfs_fasync,
 };
-
diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index bf1c57a..aa5b47c 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -177,7 +177,7 @@ static int unionfs_link(struct dentry *old_dentry, struct 
inode *dir,
        }
        if (dbstart(old_dentry) != dbstart(new_dentry) || create_p) {
                hidden_new_dentry =
-                   create_parents(dir, new_dentry, dbstart(old_dentry));
+                       create_parents(dir, new_dentry, dbstart(old_dentry));
                err = PTR_ERR(hidden_new_dentry);
                if (IS_COPYUP_ERR(err))
                        goto docopyup;
@@ -197,7 +197,7 @@ static int unionfs_link(struct dentry *old_dentry, struct 
inode *dir,
        hidden_dir_dentry = lock_parent(hidden_new_dentry);
        if (!(err = is_robranch(old_dentry)))
                err = vfs_link(hidden_old_dentry, hidden_dir_dentry->d_inode,
-                            hidden_new_dentry);
+                              hidden_new_dentry);
        unlock_dir(hidden_dir_dentry);
 
 docopyup:
@@ -242,7 +242,7 @@ check_link:
        new_dentry->d_inode = igrab(old_dentry->d_inode);
        d_instantiate(new_dentry, new_dentry->d_inode);
        fsstack_copy_attr_all(dir, hidden_new_dentry->d_parent->d_inode,
-                                       unionfs_get_nlinks);
+                             unionfs_get_nlinks);
        fsstack_copy_inode_size(dir, hidden_new_dentry->d_parent->d_inode);
        /* update odf, FIXME: what to do in case of err?  */
        err = odf_link(old_dentry, new_dentry);
@@ -594,7 +594,7 @@ static int inode_permission(struct inode *inode, int mask, 
struct nameidata *nd,
                if (bindex == 0) {
                        umode_t mode = inode->i_mode;
                        if (IS_RDONLY(inode) &&
-                          (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)))
+                           (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)))
                                return -EROFS;
                }
                /*
@@ -794,4 +794,3 @@ struct inode_operations unionfs_main_iops = {
        .listxattr      = unionfs_listxattr,
 #endif
 };
-
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index de89d1a..46bd393 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -128,7 +128,7 @@ struct dentry *unionfs_lookup_backend(struct dentry 
*dentry, struct nameidata *n
                nd->mnt = unionfs_lower_mnt_idx(parent_dentry, bindex);
 
                hidden_dentry = lookup_one_len_nd(name, hidden_dir_dentry,
-                                              namelen, nd);
+                                                 namelen, nd);
                if (IS_ERR(hidden_dentry)) {
                        dput(first_hidden_dentry);
                        unionfs_mntput(first_dentry, first_dentry_offset);
@@ -170,7 +170,7 @@ struct dentry *unionfs_lookup_backend(struct dentry 
*dentry, struct nameidata *n
 
                /* update parent directory's atime with the bindex */
                fsstack_copy_attr_atime(parent_dentry->d_inode,
-                                    hidden_dir_dentry->d_inode);
+                                       hidden_dir_dentry->d_inode);
 
                /* We terminate file lookups here. */
                if (!S_ISDIR(hidden_dentry->d_inode->i_mode)) {
@@ -347,8 +347,8 @@ static struct kmem_cache *unionfs_dentry_cachep;
 int unionfs_init_dentry_cache(void)
 {
        unionfs_dentry_cachep = kmem_cache_create("unionfs_dentry",
-                                       sizeof(struct unionfs_dentry_info), 0,
-                                       SLAB_RECLAIM_ACCOUNT, NULL, NULL);
+                                                 sizeof(struct 
unionfs_dentry_info), 0,
+                                                 SLAB_RECLAIM_ACCOUNT, NULL, 
NULL);
 
        return (unionfs_dentry_cachep ? 0 : -ENOMEM);
 }
@@ -378,7 +378,7 @@ int new_dentry_private_data(struct dentry *dentry)
        spin_lock(&dentry->d_lock);
        if (!info) {
                dentry->d_fsdata = kmem_cache_alloc(unionfs_dentry_cachep,
-                                               GFP_ATOMIC);
+                                                   GFP_ATOMIC);
                info = UNIONFS_D(dentry);
 
                if (!info)
@@ -452,4 +452,3 @@ void update_bstart(struct dentry *dentry)
                unionfs_set_lower_dentry_idx(dentry, bindex, NULL);
        }
 }
-
diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index 6634126..594056f 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -64,7 +64,7 @@ int unionfs_interpose(struct dentry *dentry, struct 
super_block *sb, int flag)
                           atomic_read(&UNIONFS_SB(sb)->generation));
 
                UNIONFS_I(inode)->lower_inodes =
-                   kcalloc(sbmax(sb), sizeof(struct inode *), GFP_KERNEL);
+                       kcalloc(sbmax(sb), sizeof(struct inode *), GFP_KERNEL);
                if (!UNIONFS_I(inode)->lower_inodes) {
                        err = -ENOMEM;
                        goto out;
@@ -112,7 +112,7 @@ int unionfs_interpose(struct dentry *dentry, struct 
super_block *sb, int flag)
                        continue;
 
                unionfs_set_lower_inode_idx(inode, bindex,
-                               igrab(hidden_dentry->d_inode));
+                                           igrab(hidden_dentry->d_inode));
        }
 
        ibstart(inode) = dbstart(dentry);
@@ -191,7 +191,7 @@ void unionfs_reinterpose(struct dentry *dentry)
                if (unionfs_lower_inode_idx(inode, bindex))
                        continue;
                unionfs_set_lower_inode_idx(inode, bindex,
-                               igrab(hidden_dentry->d_inode));
+                                           igrab(hidden_dentry->d_inode));
        }
        ibstart(inode) = dbstart(dentry);
        ibend(inode) = dbend(dentry);
@@ -287,14 +287,14 @@ static int parse_dirs_option(struct super_block *sb, 
struct unionfs_dentry_info
 
        /* allocate space for underlying pointers to hidden dentry */
        UNIONFS_SB(sb)->data = kcalloc(branches,
-                       sizeof(struct unionfs_data), GFP_KERNEL);
+                                      sizeof(struct unionfs_data), GFP_KERNEL);
        if (!UNIONFS_SB(sb)->data) {
                err = -ENOMEM;
                goto out;
        }
 
        hidden_root_info->lower_paths = kcalloc(branches,
-                       sizeof(struct path), GFP_KERNEL);
+                                               sizeof(struct path), 
GFP_KERNEL);
        if (!hidden_root_info->lower_paths) {
                err = -ENOMEM;
                goto out;
@@ -366,7 +366,7 @@ static int parse_dirs_option(struct super_block *sb, struct 
unionfs_dentry_info
 
                        if (is_branch_overlap(dent1, dent2)) {
                                printk(KERN_WARNING "unionfs: branches %d and "
-                                       "%d overlap\n", i, j);
+                                      "%d overlap\n", i, j);
                                err = -EINVAL;
                                goto out;
                        }
@@ -412,7 +412,7 @@ static struct unionfs_dentry_info 
*unionfs_parse_options(struct super_block *sb,
        /* allocate private data area */
        err = -ENOMEM;
        hidden_root_info =
-           kzalloc(sizeof(struct unionfs_dentry_info), GFP_KERNEL);
+               kzalloc(sizeof(struct unionfs_dentry_info), GFP_KERNEL);
        if (!hidden_root_info)
                goto out_error;
        hidden_root_info->bstart = -1;
@@ -809,11 +809,10 @@ static void __exit exit_unionfs_fs(void)
 }
 
 MODULE_AUTHOR("Erez Zadok, Filesystems and Storage Lab, Stony Brook University"
-               " (http://www.fsl.cs.sunysb.edu)");
+             " (http://www.fsl.cs.sunysb.edu)");
 MODULE_DESCRIPTION("Unionfs " UNIONFS_VERSION
-               " (http://unionfs.filesystems.org)");
+                  " (http://unionfs.filesystems.org)");
 MODULE_LICENSE("GPL");
 
 module_init(init_unionfs_fs);
 module_exit(exit_unionfs_fs);
-
diff --git a/fs/unionfs/rdstate.c b/fs/unionfs/rdstate.c
index 2265031..d0a618d 100644
--- a/fs/unionfs/rdstate.c
+++ b/fs/unionfs/rdstate.c
@@ -34,8 +34,8 @@ static struct kmem_cache *unionfs_filldir_cachep;
 int unionfs_init_filldir_cache(void)
 {
        unionfs_filldir_cachep =
-           kmem_cache_create("unionfs_filldir", sizeof(struct filldir_node), 0,
-                             SLAB_RECLAIM_ACCOUNT, NULL, NULL);
+               kmem_cache_create("unionfs_filldir", sizeof(struct 
filldir_node), 0,
+                                 SLAB_RECLAIM_ACCOUNT, NULL, NULL);
 
        return (unionfs_filldir_cachep ? 0 : -ENOMEM);
 }
@@ -99,7 +99,7 @@ struct unionfs_dir_state *find_rdstate(struct inode *inode, 
loff_t fpos)
        spin_lock(&UNIONFS_I(inode)->rdlock);
        list_for_each(pos, &UNIONFS_I(inode)->readdircache) {
                struct unionfs_dir_state *r =
-                   list_entry(pos, struct unionfs_dir_state, cache);
+                       list_entry(pos, struct unionfs_dir_state, cache);
                if (fpos == rdstate2offset(r)) {
                        UNIONFS_I(inode)->rdcount--;
                        list_del(&r->cache);
@@ -127,7 +127,7 @@ struct unionfs_dir_state *alloc_rdstate(struct inode 
*inode, int bindex)
                mallocsize = PAGE_SIZE;
 
        hashsize = (mallocsize -
-            sizeof(struct unionfs_dir_state)) / sizeof(struct list_head);
+                   sizeof(struct unionfs_dir_state)) / sizeof(struct 
list_head);
 
        rdstate = kmalloc(mallocsize, GFP_KERNEL);
        if (!rdstate)
@@ -211,9 +211,9 @@ struct filldir_node *find_filldir_node(struct 
unionfs_dir_state *rdstate,
                         */
                        if (cursor->bindex == rdstate->bindex) {
                                printk(KERN_DEBUG "Possible I/O error "
-                                       "unionfs_filldir: a file is duplicated "
-                                       "in the same branch %d: %s\n",
-                                       rdstate->bindex, cursor->name);
+                                      "unionfs_filldir: a file is duplicated "
+                                      "in the same branch %d: %s\n",
+                                      rdstate->bindex, cursor->name);
                        }
                        break;
                }
@@ -272,4 +272,3 @@ int add_filldir_node(struct unionfs_dir_state *rdstate, 
const char *name,
 out:
        return err;
 }
-
diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c
index 4facacc..1c2294c 100644
--- a/fs/unionfs/rename.c
+++ b/fs/unionfs/rename.c
@@ -83,11 +83,11 @@ static int do_rename(struct inode *old_dir, struct dentry 
*old_dentry,
 
        if (!hidden_new_dentry) {
                hidden_new_dentry =
-                   create_parents(new_dentry->d_parent->d_inode, new_dentry, 
bindex);
+                       create_parents(new_dentry->d_parent->d_inode, 
new_dentry, bindex);
                if (IS_ERR(hidden_new_dentry)) {
                        printk(KERN_DEBUG "error creating directory tree for"
-                                         " rename, bindex = %d, err = %ld\n",
-                                         bindex, PTR_ERR(hidden_new_dentry));
+                              " rename, bindex = %d, err = %ld\n",
+                              bindex, PTR_ERR(hidden_new_dentry));
                        err = PTR_ERR(hidden_new_dentry);
                        goto out;
                }
@@ -127,9 +127,9 @@ out_nofix:
 }
 
 static int do_unionfs_rename(struct inode *old_dir,
-                                  struct dentry *old_dentry,
-                                  struct inode *new_dir,
-                                  struct dentry *new_dentry)
+                            struct dentry *old_dentry,
+                            struct inode *new_dir,
+                            struct dentry *new_dentry)
 {
        int err = 0;
        int bindex;
@@ -233,14 +233,14 @@ revert:
        local_err = unionfs_refresh_hidden_dentry(new_dentry, old_bstart);
        if (local_err) {
                printk(KERN_WARNING "Revert failed in rename: the new refresh "
-                               "failed.\n");
+                      "failed.\n");
                eio = -EIO;
        }
 
        local_err = unionfs_refresh_hidden_dentry(old_dentry, old_bstart);
        if (local_err) {
                printk(KERN_WARNING "Revert failed in rename: the old refresh "
-                               "failed.\n");
+                      "failed.\n");
                eio = -EIO;
                goto revert_out;
        }
@@ -248,7 +248,7 @@ revert:
        if (!unionfs_lower_dentry_idx(new_dentry, bindex) ||
            !unionfs_lower_dentry_idx(new_dentry, bindex)->d_inode) {
                printk(KERN_WARNING "Revert failed in rename: the object "
-                               "disappeared from under us!\n");
+                      "disappeared from under us!\n");
                eio = -EIO;
                goto revert_out;
        }
@@ -256,7 +256,7 @@ revert:
        if (unionfs_lower_dentry_idx(old_dentry, bindex) &&
            unionfs_lower_dentry_idx(old_dentry, bindex)->d_inode) {
                printk(KERN_WARNING "Revert failed in rename: the object was "
-                               "created underneath us!\n");
+                      "created underneath us!\n");
                eio = -EIO;
                goto revert_out;
        }
@@ -361,7 +361,7 @@ int unionfs_rename(struct inode *old_dir, struct dentry 
*old_dentry,
                if (S_ISDIR(old_dentry->d_inode->i_mode) !=
                    S_ISDIR(new_dentry->d_inode->i_mode)) {
                        err = S_ISDIR(old_dentry->d_inode->i_mode) ?
-                                       -ENOTDIR : -EISDIR;
+                               -ENOTDIR : -EISDIR;
                        goto out;
                }
                if (S_ISDIR(new_dentry->d_inode->i_mode)) {
@@ -392,4 +392,3 @@ out:
        unionfs_unlock_dentry(old_dentry);
        return err;
 }
-
diff --git a/fs/unionfs/sioq.h b/fs/unionfs/sioq.h
index c6392c6..b8ed5af 100644
--- a/fs/unionfs/sioq.h
+++ b/fs/unionfs/sioq.h
@@ -101,4 +101,3 @@ extern void __unionfs_symlink(struct work_struct *work);
 extern void __unionfs_unlink(struct work_struct *work);
 
 #endif /* _SIOQ_H */
-
diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c
index c8f12e8..72a72cb 100644
--- a/fs/unionfs/subr.c
+++ b/fs/unionfs/subr.c
@@ -36,7 +36,7 @@ int unionfs_refresh_hidden_dentry(struct dentry *dentry, int 
bindex)
        BUG_ON(!S_ISDIR(hidden_parent->d_inode->i_mode));
 
        hidden_dentry = lookup_one_len(dentry->d_name.name, hidden_parent,
-                               dentry->d_name.len);
+                                      dentry->d_name.len);
        if (IS_ERR(hidden_dentry)) {
                err = PTR_ERR(hidden_dentry);
                goto out;
@@ -52,7 +52,7 @@ int unionfs_refresh_hidden_dentry(struct dentry *dentry, int 
bindex)
        } else {
                unionfs_set_lower_dentry_idx(dentry, bindex, hidden_dentry);
                unionfs_set_lower_inode_idx(dentry->d_inode, bindex,
-                               igrab(hidden_dentry->d_inode));
+                                           igrab(hidden_dentry->d_inode));
        }
 
 out:
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index d02ba17..c5a7944 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -31,7 +31,7 @@ static void unionfs_read_inode(struct inode *inode)
 
        if (!info) {
                printk(KERN_ERR "No kernel memory when allocating inode "
-                               "private data!\n");
+                      "private data!\n");
                BUG();
        }
 
@@ -49,7 +49,7 @@ static void unionfs_read_inode(struct inode *inode)
        info->lower_inodes = kzalloc(size, GFP_KERNEL);
        if (!info->lower_inodes) {
                printk(KERN_ERR "No kernel memory when allocating lower-"
-                               "pointer array!\n");
+                      "pointer array!\n");
                BUG();
        }
 
@@ -507,7 +507,7 @@ static int unionfs_remount_fs(struct super_block *sb, int 
*flags,
        }
        /* allocate space for new pointers to lower paths */
        tmp_lower_paths = kcalloc(max_branches,
-                          sizeof(struct path), GFP_KERNEL);
+                                 sizeof(struct path), GFP_KERNEL);
        if (!tmp_lower_paths) {
                err = -ENOMEM;
                goto out_free;
@@ -868,9 +868,9 @@ int unionfs_init_inode_cache(void)
        int err = 0;
 
        unionfs_inode_cachep =
-           kmem_cache_create("unionfs_inode_cache",
-                             sizeof(struct unionfs_inode_info), 0,
-                             SLAB_RECLAIM_ACCOUNT, init_once, NULL);
+               kmem_cache_create("unionfs_inode_cache",
+                                 sizeof(struct unionfs_inode_info), 0,
+                                 SLAB_RECLAIM_ACCOUNT, init_once, NULL);
        if (!unionfs_inode_cachep)
                err = -ENOMEM;
        return err;
@@ -960,8 +960,8 @@ static int unionfs_show_options(struct seq_file *m, struct 
vfsmount *mnt)
        seq_printf(m, ",dirs=");
        for (bindex = bstart; bindex <= bend; bindex++) {
                path = d_path(unionfs_lower_dentry_idx(sb->s_root, bindex),
-                          unionfs_lower_mnt_idx(sb->s_root, bindex), tmp_page,
-                          PAGE_SIZE);
+                             unionfs_lower_mnt_idx(sb->s_root, bindex), 
tmp_page,
+                             PAGE_SIZE);
                if (IS_ERR(path)) {
                        ret = PTR_ERR(path);
                        goto out;
@@ -999,4 +999,3 @@ struct super_operations unionfs_sops = {
        .alloc_inode    = unionfs_alloc_inode,
        .destroy_inode  = unionfs_destroy_inode,
 };
-
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index 5d01713..6f4d5eb 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -354,12 +354,12 @@ extern void *unionfs_xattr_alloc(size_t size, size_t 
limit);
 extern void unionfs_xattr_free(void *ptr, size_t size);
 
 extern ssize_t unionfs_getxattr(struct dentry *dentry, const char *name,
-               void *value, size_t size);
+                               void *value, size_t size);
 extern int unionfs_removexattr(struct dentry *dentry, const char *name);
 extern ssize_t unionfs_listxattr(struct dentry *dentry, char *list,
-               size_t size);
+                                size_t size);
 extern int unionfs_setxattr(struct dentry *dentry, const char *name,
-               const void *value, size_t size, int flags);
+                           const void *value, size_t size, int flags);
 #endif /* CONFIG_UNION_FS_XATTR */
 
 /* The root directory is unhashed, but isn't deleted. */
diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index c61111e..44d88d2 100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -270,4 +270,3 @@ out:
        unionfs_unlock_dentry(dentry);
        return err;
 }
-
diff --git a/fs/unionfs/xattr.c b/fs/unionfs/xattr.c
index 6e1f4bd..41b3620 100644
--- a/fs/unionfs/xattr.c
+++ b/fs/unionfs/xattr.c
@@ -51,7 +51,7 @@ void unionfs_xattr_free(void *ptr, size_t size)
  * dentry->d_inode->i_mutex locked
  */
 ssize_t unionfs_getxattr(struct dentry * dentry, const char *name, void *value,
-               size_t size)
+                        size_t size)
 {
        struct dentry *hidden_dentry = NULL;
        int err = -EOPNOTSUPP;
@@ -72,7 +72,7 @@ ssize_t unionfs_getxattr(struct dentry * dentry, const char 
*name, void *value,
  * dentry->d_inode->i_mutex locked
  */
 int unionfs_setxattr(struct dentry *dentry, const char *name, const void 
*value,
-               size_t size, int flags)
+                    size_t size, int flags)
 {
        struct dentry *hidden_dentry = NULL;
        int err = -EOPNOTSUPP;
@@ -128,4 +128,3 @@ ssize_t unionfs_listxattr(struct dentry * dentry, char 
*list, size_t size)
        unionfs_unlock_dentry(dentry);
        return err;
 }
-
diff --git a/include/linux/fs_stack.h b/include/linux/fs_stack.h
index bb516ce..891154d 100644
--- a/include/linux/fs_stack.h
+++ b/include/linux/fs_stack.h
@@ -9,7 +9,7 @@
 
 /* externs for fs/stack.c */
 extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src,
-                               int (*get_nlinks)(struct inode *));
+                                 int (*get_nlinks)(struct inode *));
 
 extern void fsstack_copy_inode_size(struct inode *dst, const struct inode 
*src);
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to