coding-style: no lines over 80 chars
authorErez_Zadok <ezk@cs.sunysb.edu>
Sat, 24 Mar 2007 22:11:10 +0000 (18:11 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 02:38:33 +0000 (21:38 -0500)
19 files changed:
fs/unionfs/branchman.c
fs/unionfs/commonfops.c
fs/unionfs/copyup.c
fs/unionfs/dentry.c
fs/unionfs/dirfops.c
fs/unionfs/dirhelper.c
fs/unionfs/fanout.h
fs/unionfs/file.c
fs/unionfs/inode.c
fs/unionfs/lookup.c
fs/unionfs/main.c
fs/unionfs/rdstate.c
fs/unionfs/rename.c
fs/unionfs/sioq.c
fs/unionfs/subr.c
fs/unionfs/super.c
fs/unionfs/union.h
fs/unionfs/unlink.c
fs/unionfs/xattr.c

index dc0a5c54e6d4fe70c8e54f57f19cb46a2314f700..eba222100958920a17045633b378a9a7ac8ac721 100644 (file)
@@ -9,7 +9,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
index 6a207fc19b4eb353e145ee9e700a6c1523abc4f7..9dc4c8d83ad8d299907dee91cd311579fdc57ae5 100644 (file)
@@ -9,7 +9,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
index ece76cc9d38c6f83d3606e10ab3dd4e37ef918df..ca3b0ddf11aadaee7a6e7a4a4a1fbd09cc9222e5 100644 (file)
@@ -9,7 +9,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
@@ -520,8 +520,8 @@ int copyup_file(struct inode *dir, struct file *file, int bstart,
        return err;
 }
 
-/* This function replicates the directory structure upto given dentry
- * in the bindex branch. Can create directory structure recursively to the right
+/* This function replicates the directory structure upto given dentry in the
+ * bindex branch. Can create directory structure recursively to the right
  * also.
  */
 struct dentry *create_parents(struct inode *dir, struct dentry *dentry,
index 2369cf8d5fe0fa8bb62f170902708babc58bcec0..17c0b274c3707612a8fdbc3ed80bec37b967f6f5 100644 (file)
@@ -9,7 +9,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
@@ -26,7 +26,8 @@
  * the child may not yet be valid.
  * Returns 1 if valid, 0 otherwise.
  */
-static int __unionfs_d_revalidate_one(struct dentry *dentry, struct nameidata *nd)
+static int __unionfs_d_revalidate_one(struct dentry *dentry,
+                                     struct nameidata *nd)
 {
        int valid = 1;          /* default is valid (1); invalid is 0. */
        struct dentry *hidden_dentry;
index 1c4f7860529e2d4c67acc4771a9e946728f96467..cc7e505551edea324bb01168473b38afd73f43b7 100644 (file)
@@ -9,7 +9,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
index 8a4bc93d92ffc9c4a0058f495e4d79ca4e19f14e..df2a04fe045c88fc471145870c2816d2094e1218 100644 (file)
@@ -9,7 +9,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
index dbdbbe3ac2d366cd603b481d241d824c6da78fd9..5e3c6423ccf9f3b3e7e4c043289f060934e5c897 100644 (file)
@@ -8,7 +8,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
@@ -61,12 +61,14 @@ static inline struct file *unionfs_lower_file(const struct file *f)
        return UNIONFS_F(f)->lower_files[fbstart(f)];
 }
 
-static inline struct file *unionfs_lower_file_idx(const struct file *f, int index)
+static inline struct file *unionfs_lower_file_idx(const struct file *f,
+                                                 int index)
 {
        return UNIONFS_F(f)->lower_files[index];
 }
 
-static inline void unionfs_set_lower_file_idx(struct file *f, int index, struct file *val)
+static inline void unionfs_set_lower_file_idx(struct file *f, int index,
+                                             struct file *val)
 {
        UNIONFS_F(f)->lower_files[index] = val;
        /* save branch ID (may be redundant?) */
@@ -85,7 +87,8 @@ static inline struct inode *unionfs_lower_inode(const struct inode *i)
        return UNIONFS_I(i)->lower_inodes[ibstart(i)];
 }
 
-static inline struct inode *unionfs_lower_inode_idx(const struct inode *i, int index)
+static inline struct inode *unionfs_lower_inode_idx(const struct inode *i,
+                                                   int index)
 {
        return UNIONFS_I(i)->lower_inodes[index];
 }
@@ -102,23 +105,28 @@ static inline void unionfs_set_lower_inode(struct inode *i, struct inode *val)
 }
 
 /* Superblock to lower superblock. */
-static inline struct super_block *unionfs_lower_super(const struct super_block *sb)
+static inline struct super_block *unionfs_lower_super(
+                                       const struct super_block *sb)
 {
        return UNIONFS_SB(sb)->data[sbstart(sb)].sb;
 }
 
-static inline struct super_block *unionfs_lower_super_idx(const struct super_block *sb, int index)
+static inline struct super_block *unionfs_lower_super_idx(
+                                       const struct super_block *sb,
+                                       int index)
 {
        return UNIONFS_SB(sb)->data[index].sb;
 }
 
-static inline void unionfs_set_lower_super_idx(struct super_block *sb, int index,
+static inline void unionfs_set_lower_super_idx(struct super_block *sb,
+                                              int index,
                                               struct super_block *val)
 {
        UNIONFS_SB(sb)->data[index].sb = val;
 }
 
-static inline void unionfs_set_lower_super(struct super_block *sb, struct super_block *val)
+static inline void unionfs_set_lower_super(struct super_block *sb,
+                                          struct super_block *val)
 {
        UNIONFS_SB(sb)->data[sbstart(sb)].sb = val;
 }
@@ -186,7 +194,9 @@ static inline void unionfs_set_lower_dentry_idx(struct dentry *dent, int index,
        UNIONFS_D(dent)->lower_paths[index].dentry = val;
 }
 
-static inline struct dentry *unionfs_lower_dentry_idx(const struct dentry *dent, int index)
+static inline struct dentry *unionfs_lower_dentry_idx(
+                               const struct dentry *dent,
+                               int index)
 {
        return UNIONFS_D(dent)->lower_paths[index].dentry;
 }
@@ -202,7 +212,9 @@ static inline void unionfs_set_lower_mnt_idx(struct dentry *dent, int index,
        UNIONFS_D(dent)->lower_paths[index].mnt = mnt;
 }
 
-static inline struct vfsmount *unionfs_lower_mnt_idx(const struct dentry *dent, int index)
+static inline struct vfsmount *unionfs_lower_mnt_idx(
+                                       const struct dentry *dent,
+                                       int index)
 {
        return UNIONFS_D(dent)->lower_paths[index].mnt;
 }
index c53af94c96aa1c968bf626a9ae5844752090feef..430cb43e2126235fc0748dfc7f379ced58d08005 100644 (file)
@@ -9,7 +9,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
@@ -205,7 +205,8 @@ out:
        return err;
 }
 
-static int unionfs_fsync(struct file *file, struct dentry *dentry, int datasync)
+static int unionfs_fsync(struct file *file, struct dentry *dentry,
+                        int datasync)
 {
        int err;
        struct file *hidden_file = NULL;
index 789e2cf10d0b710d032ef82a81ad154adbe16620..579badabd7f8f1fcf9247af93399a8e2ca18561d 100644 (file)
@@ -9,7 +9,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
@@ -803,8 +803,8 @@ static void unionfs_put_link(struct dentry *dentry, struct nameidata *nd,
  *   security_inode_permission, and therefore security inside SELinux, etc.
  *   are performed.
  */
-static int inode_permission(struct inode *inode, int mask, struct nameidata *nd,
-                           int bindex)
+static int inode_permission(struct inode *inode, int mask,
+                           struct nameidata *nd, int bindex)
 {
        int retval, submask;
 
index 661bc5b44f1ba90d2b3af09938af30925c76c693..9b7c8611c093ec48017d0440e1c469c8ae9b8e61 100644 (file)
@@ -9,7 +9,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
@@ -69,8 +69,8 @@ out:
        return err;
 }
 
-struct dentry *unionfs_lookup_backend(struct dentry *dentry, struct nameidata *nd,
-                                     int lookupmode)
+struct dentry *unionfs_lookup_backend(struct dentry *dentry,
+                                     struct nameidata *nd, int lookupmode)
 {
        int err = 0;
        struct dentry *hidden_dentry = NULL;
@@ -312,8 +312,10 @@ out_negative:
                first_dentry = dentry;
                first_hidden_mnt = unionfs_mntget(dentry, bindex);
        }
-       unionfs_set_lower_dentry_idx(dentry, first_dentry_offset, first_hidden_dentry);
-       unionfs_set_lower_mnt_idx(dentry, first_dentry_offset, first_hidden_mnt);
+       unionfs_set_lower_dentry_idx(dentry, first_dentry_offset,
+                                    first_hidden_dentry);
+       unionfs_set_lower_mnt_idx(dentry, first_dentry_offset,
+                                 first_hidden_mnt);
        set_dbstart(dentry, first_dentry_offset);
        set_dbend(dentry, first_dentry_offset);
 
index e715f2947b5899b7ba41f285cc6bb64a94f032a9..899eee19109a2a79f68282139bef104054983305 100644 (file)
@@ -9,7 +9,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
@@ -380,8 +380,9 @@ out:
  * Returns the dentry object of the lower-level (hidden) directory;
  * We want to mount our stackable file system on top of that hidden directory.
  */
-static struct unionfs_dentry_info *unionfs_parse_options(struct super_block *sb,
-                                                        char *options)
+static struct unionfs_dentry_info *unionfs_parse_options(
+                                       struct super_block *sb,
+                                       char *options)
 {
        struct unionfs_dentry_info *hidden_root_info;
        char *optname;
index d0a618d85c11231b12dbf862d27ae442cc9c77a2..b9e731a3c3ea0c4b44f00980fa5b9e30ebfe62e9 100644 (file)
@@ -9,7 +9,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
index c6c3cfe3c3a60e4b2495192816ce8d7a66429519..973a42f37789a1252cf727da41c8084b9f37c514 100644 (file)
@@ -9,7 +9,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
index 2a63bbec2456030dbc6fd5cb7a8073ccbaebf7a9..bef970b22066f374497e801ac7e3f2c8162bc4c1 100644 (file)
@@ -9,7 +9,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
index 4a8f22c580f22d617c66468520d21556a742e61d..7bfd28d870bf4c7f59ffe65971474d08ece7fd9a 100644 (file)
@@ -9,7 +9,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
index 9e438c9c87b5d3e3d93777422622be986d76c4cf..0319428c88170393d5d6233dabf4f5a443dbe42d 100644 (file)
@@ -9,7 +9,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
index 681272dd41f5ea503e6bbadfc1eae6e025dd6ff9..1dd49ae3a3d7647fc121040e372f5d4571174e7e 100644 (file)
@@ -8,7 +8,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
@@ -262,8 +262,8 @@ extern int copyup_named_file(struct inode *dir, struct file *file,
 extern int copyup_dentry(struct inode *dir, struct dentry *dentry, int bstart,
                         int new_bindex, struct file **copyup_file, loff_t len);
 
-extern int remove_whiteouts(struct dentry *dentry, struct dentry *hidden_dentry,
-                           int bindex);
+extern int remove_whiteouts(struct dentry *dentry,
+                           struct dentry *hidden_dentry, int bindex);
 
 extern int do_delete_whiteouts(struct dentry *dentry, int bindex,
                               struct unionfs_dir_state *namelist);
@@ -310,8 +310,8 @@ int __unionfs_d_revalidate_chain(struct dentry *dentry, struct nameidata *nd);
 #define INTERPOSE_REVAL_NEG    3
 #define INTERPOSE_PARTIAL      4
 
-extern int unionfs_interpose(struct dentry *this_dentry, struct super_block *sb,
-                            int flag);
+extern int unionfs_interpose(struct dentry *this_dentry,
+                            struct super_block *sb, int flag);
 
 /* Branch management ioctls. */
 int unionfs_ioctl_incgen(struct file *file, unsigned int cmd,
@@ -339,7 +339,8 @@ static inline int d_deleted(struct dentry *d)
        return d_unhashed(d) && (d != d->d_sb->s_root);
 }
 
-struct dentry *unionfs_lookup_backend(struct dentry *dentry, struct nameidata *nd, int lookupmode);
+struct dentry *unionfs_lookup_backend(struct dentry *dentry,
+                                     struct nameidata *nd, int lookupmode);
 
 /* unionfs_permission, check if we should bypass error to facilitate copyup */
 #define IS_COPYUP_ERR(err) ((err) == -EROFS)
@@ -433,8 +434,8 @@ extern int check_branch(struct nameidata *nd);
 extern int __parse_branch_mode(const char *name);
 extern int parse_branch_mode(const char *name);
 
-/* These two functions are here because it is kind of daft to copy and paste the
- * contents of the two functions to 32+ places in unionfs
+/* These two functions are here because it is kind of daft to copy and paste
+ * the contents of the two functions to 32+ places in unionfs
  */
 static inline struct dentry *lock_parent(struct dentry *dentry)
 {
@@ -452,7 +453,8 @@ static inline void unlock_dir(struct dentry *dir)
 
 extern int make_dir_opaque(struct dentry *dir, int bindex);
 
-static inline struct vfsmount *unionfs_mntget(struct dentry *dentry, int bindex)
+static inline struct vfsmount *unionfs_mntget(struct dentry *dentry,
+                                             int bindex)
 {
        struct vfsmount *mnt;
        if (!dentry) {
index 5660a0d5be979ea076caa0e07d05927fce29ab2b..27b4542fd3a5dc14e273e9e019863e627c5694bd 100644 (file)
@@ -9,7 +9,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
index 41b3620bc896414f82c18790392471886a1e11c5..b8f8fe6aa0a6009993d2231016f6d8e25aa957b1 100644 (file)
@@ -9,7 +9,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
@@ -71,8 +71,8 @@ ssize_t unionfs_getxattr(struct dentry * dentry, const char *name, void *value,
 /* BKL held by caller.
  * dentry->d_inode->i_mutex locked
  */
-int unionfs_setxattr(struct dentry *dentry, const char *name, const void *value,
-                    size_t size, int flags)
+int unionfs_setxattr(struct dentry *dentry, const char *name,
+                    const void *value, size_t size, int flags)
 {
        struct dentry *hidden_dentry = NULL;
        int err = -EOPNOTSUPP;