Unionfs: minor coding style updates
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 18 Nov 2007 03:36:23 +0000 (22:36 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:08 +0000 (19:03 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/debug.c
fs/unionfs/dentry.c
fs/unionfs/inode.c
fs/unionfs/main.c
fs/unionfs/union.h

index f6785344e38719701ba82ce7ae6a7a9589acf7e4..2d15fb0fb869b7b130b90dd8d7ca0154fc41bb52 100644 (file)
@@ -467,7 +467,8 @@ void __show_dinode_times(const struct dentry *dentry,
                lower_inode = unionfs_lower_inode_idx(inode, bindex);
                if (!lower_inode)
                        continue;
-               printk("DT(%s:%lu:%d): ", dentry->d_name.name, inode->i_ino, bindex);
+               printk("DT(%s:%lu:%d): ", dentry->d_name.name, inode->i_ino,
+                      bindex);
                printk("%s:%s:%d ",file,fxn,line);
                printk("um=%lu/%lu lm=%lu/%lu ",
                       inode->i_mtime.tv_sec, inode->i_mtime.tv_nsec,
@@ -490,7 +491,8 @@ void __show_inode_counts(const struct inode *inode,
                printk("SiC: Null inode\n");
                return;
        }
-       for (bindex=sbstart(inode->i_sb); bindex <= sbend(inode->i_sb); bindex++) {
+       for (bindex=sbstart(inode->i_sb); bindex <= sbend(inode->i_sb);
+            bindex++) {
                lower_inode = unionfs_lower_inode_idx(inode, bindex);
                if (!lower_inode)
                        continue;
index 8d7b5527821807136d842a66948df31698038a42..0ece802e8d0ef25dd113fe26799a456907215041 100644 (file)
@@ -26,7 +26,7 @@
  * Returns true if valid, false otherwise.
  */
 static bool __unionfs_d_revalidate_one(struct dentry *dentry,
-                                     struct nameidata *nd)
+                                      struct nameidata *nd)
 {
        bool valid = true;      /* default is valid */
        struct dentry *lower_dentry;
index 2ebf7d8df8aa7cf50c1743f8b1d4b800827bd5fb..ece0b81e8e2c37dce63ec95f4416f508386ed5f3 100644 (file)
@@ -379,9 +379,8 @@ static int unionfs_symlink(struct inode *dir, struct dentry *dentry,
 
        if (!(err = is_robranch_super(dentry->d_sb, bstart))) {
                mode = S_IALLUGO;
-               err =
-                       vfs_symlink(lower_dir_dentry->d_inode,
-                                   lower_dentry, symname, mode);
+               err = vfs_symlink(lower_dir_dentry->d_inode,
+                                 lower_dentry, symname, mode);
        }
        unlock_dir(lower_dir_dentry);
 
@@ -727,9 +726,11 @@ static void unionfs_put_link(struct dentry *dentry, struct nameidata *nd,
  *       readonly, to allow copyup to work.
  *   (3) we do call security_inode_permission, and therefore security inside
  *       SELinux, etc. are performed.
+ *
+ * @inode: the lower inode we're checking permission on
  */
-static int inode_permission(struct super_block *sb, struct inode *inode, int mask,
-                           struct nameidata *nd, int bindex)
+static int inode_permission(struct super_block *sb, struct inode *inode,
+                           int mask, struct nameidata *nd, int bindex)
 {
        int retval, submask;
 
index 04fd798840f82443fee66047062aaa3c736bed73..e42d3662d6679eb4152c11e2c5ce3aa9fa9d9dd6 100644 (file)
@@ -294,14 +294,14 @@ int __parse_branch_mode(const char *name)
  */
 int parse_branch_mode(const char *name)
 {
-       int perms =  __parse_branch_mode(name);
+       int perms = __parse_branch_mode(name);
 
        if (perms == 0)
                perms = MAY_READ | MAY_WRITE;
        return perms;
 }
 
-/* 
+/*
  * parse the dirs= mount argument
  *
  * We don't need to lock the superblock private data's rwsem, as we get
index 77a9bae5c3d56c871a285f3f75f66c9a0e5118ab..f0e1c8dc881bfc41b52093ea43a562df27eb3f0a 100644 (file)
@@ -580,7 +580,7 @@ extern void __show_inode_counts(const struct inode *inode,
 
 /* we leave useful hooks for these check functions throughout the code */
 #define unionfs_check_inode(i)         do { } while(0)
-#define unionfs_check_dentry(d)        do { } while(0)
+#define unionfs_check_dentry(d)                do { } while(0)
 #define unionfs_check_file(f)          do { } while(0)
 #define show_branch_counts(sb)         do { } while(0)
 #define show_inode_times(i)            do { } while(0)