From: Erez_Zadok Date: Sat, 24 Mar 2007 22:11:10 +0000 (-0400) Subject: coding-style: no lines over 80 chars X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=626317f9ebe73537ab744d5d1b0ae39a004c7b1a;p=unionfs-3.17.y.git coding-style: no lines over 80 chars --- diff --git a/fs/unionfs/branchman.c b/fs/unionfs/branchman.c index dc0a5c54e6d4..eba222100958 100644 --- a/fs/unionfs/branchman.c +++ b/fs/unionfs/branchman.c @@ -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 diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 6a207fc19b4e..9dc4c8d83ad8 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -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 diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c index ece76cc9d38c..ca3b0ddf11aa 100644 --- a/fs/unionfs/copyup.c +++ b/fs/unionfs/copyup.c @@ -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, diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index 2369cf8d5fe0..17c0b274c370 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -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; diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c index 1c4f7860529e..cc7e505551ed 100644 --- a/fs/unionfs/dirfops.c +++ b/fs/unionfs/dirfops.c @@ -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 diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c index 8a4bc93d92ff..df2a04fe045c 100644 --- a/fs/unionfs/dirhelper.c +++ b/fs/unionfs/dirhelper.c @@ -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 diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h index dbdbbe3ac2d3..5e3c6423ccf9 100644 --- a/fs/unionfs/fanout.h +++ b/fs/unionfs/fanout.h @@ -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; } diff --git a/fs/unionfs/file.c b/fs/unionfs/file.c index c53af94c96aa..430cb43e2126 100644 --- a/fs/unionfs/file.c +++ b/fs/unionfs/file.c @@ -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; diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 789e2cf10d0b..579badabd7f8 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -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; diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c index 661bc5b44f1b..9b7c8611c093 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -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); diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c index e715f2947b58..899eee19109a 100644 --- a/fs/unionfs/main.c +++ b/fs/unionfs/main.c @@ -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; diff --git a/fs/unionfs/rdstate.c b/fs/unionfs/rdstate.c index d0a618d85c11..b9e731a3c3ea 100644 --- a/fs/unionfs/rdstate.c +++ b/fs/unionfs/rdstate.c @@ -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 diff --git a/fs/unionfs/rename.c b/fs/unionfs/rename.c index c6c3cfe3c3a6..973a42f37789 100644 --- a/fs/unionfs/rename.c +++ b/fs/unionfs/rename.c @@ -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 diff --git a/fs/unionfs/sioq.c b/fs/unionfs/sioq.c index 2a63bbec2456..bef970b22066 100644 --- a/fs/unionfs/sioq.c +++ b/fs/unionfs/sioq.c @@ -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 diff --git a/fs/unionfs/subr.c b/fs/unionfs/subr.c index 4a8f22c580f2..7bfd28d870bf 100644 --- a/fs/unionfs/subr.c +++ b/fs/unionfs/subr.c @@ -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 diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 9e438c9c87b5..0319428c8817 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -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 diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h index 681272dd41f5..1dd49ae3a3d7 100644 --- a/fs/unionfs/union.h +++ b/fs/unionfs/union.h @@ -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) { diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index 5660a0d5be97..27b4542fd3a5 100644 --- a/fs/unionfs/unlink.c +++ b/fs/unionfs/unlink.c @@ -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 diff --git a/fs/unionfs/xattr.c b/fs/unionfs/xattr.c index 41b3620bc896..b8f8fe6aa0a6 100644 --- a/fs/unionfs/xattr.c +++ b/fs/unionfs/xattr.c @@ -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;