Skip to content

Commit

Permalink
[GFS2/DLM] Fix trailing whitespace
Browse files Browse the repository at this point in the history
As per Andrew Morton's request, removed trailing whitespace.

Cc: Andrew Morton <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
  • Loading branch information
swhiteho committed Sep 25, 2006
1 parent 7276b3b commit 907b9bc
Show file tree
Hide file tree
Showing 23 changed files with 51 additions and 54 deletions.
2 changes: 1 addition & 1 deletion fs/dlm/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ static int do_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
skip the queue_cast(ECANCEL). It indicates that the request/convert
completed (and queued a normal ast) just before the cancel; we don't
want to clobber the sb_result for the normal ast with ECANCEL. */

static int do_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb)
{
revert_lock(r, lkb);
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int gfs2_check_acl(struct inode *inode, int mask)
error = gfs2_check_acl_locked(inode, mask);
gfs2_glock_dq_uninit(&i_gh);
}

return error;
}

Expand Down
4 changes: 2 additions & 2 deletions fs/gfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page)
error = gfs2_meta_inode_buffer(ip, &dibh);
if (error)
goto out;

if (ip->i_di.di_size) {
/* Get a free block, fill it with the stuffed data,
and write it out to disk */
Expand Down Expand Up @@ -246,7 +246,7 @@ static int build_height(struct inode *inode, unsigned height)
blocks[n] = gfs2_meta_new(ip->i_gl, bn);
gfs2_trans_add_bh(ip->i_gl, blocks[n], 1);
}

n = 0;
bn = blocks[0]->b_blocknr;
if (new_height > 1) {
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/* This uses schedule_timeout() instead of msleep() because it's good for
the daemons to wake up more often than the timeout when unmounting so
the user's unmount doesn't sit there forever.
The kthread functions used to start these daemons block and flush signals. */

/**
Expand Down
13 changes: 6 additions & 7 deletions fs/gfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#define gfs2_disk_hash2offset(h) (((u64)(h)) >> 1)
#define gfs2_dir_offset2hash(p) ((u32)(((u64)(p)) << 1))

typedef int (*leaf_call_t) (struct gfs2_inode *dip, u32 index, u32 len,
typedef int (*leaf_call_t) (struct gfs2_inode *dip, u32 index, u32 len,
u64 leaf_no, void *data);
typedef int (*gfs2_dscan_t)(const struct gfs2_dirent *dent,
const struct qstr *name, void *opaque);
Expand Down Expand Up @@ -119,7 +119,6 @@ static int gfs2_dir_get_existing_buffer(struct gfs2_inode *ip, u64 block,

static int gfs2_dir_write_stuffed(struct gfs2_inode *ip, const char *buf,
unsigned int offset, unsigned int size)

{
struct buffer_head *dibh;
int error;
Expand Down Expand Up @@ -685,7 +684,7 @@ static struct gfs2_dirent *gfs2_dirent_alloc(struct inode *inode,
const struct qstr *name)
{
struct gfs2_dirent *dent;
dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size,
dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size,
gfs2_dirent_find_space, name, NULL);
if (!dent || IS_ERR(dent))
return dent;
Expand Down Expand Up @@ -764,7 +763,7 @@ static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
gfs2_consist_inode(ip);
return ERR_PTR(-EIO);
}

index = name->hash >> (32 - ip->i_di.di_depth);
error = get_first_leaf(ip, index, &bh);
if (error)
Expand All @@ -779,14 +778,14 @@ static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
brelse(bh);
if (!ln)
break;

error = get_leaf(ip, ln, &bh);
} while(!error);

return error ? ERR_PTR(error) : NULL;
}


error = gfs2_meta_inode_buffer(ip, &bh);
if (error)
return ERR_PTR(error);
Expand All @@ -810,7 +809,7 @@ static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh,
struct qstr name = { .name = "", .len = 0, .hash = 0 };
if (!bh)
return NULL;

gfs2_trans_add_bh(ip->i_gl, bh, 1);
gfs2_metatype_set(bh, GFS2_METATYPE_LF, GFS2_FORMAT_LF);
leaf = (struct gfs2_leaf *)bh->b_data;
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/eaops.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int system_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er)
if (error == -ENODATA)
error = 0;
}
return error;
return error;
}

return -EPERM;
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/eattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el)
gfs2_trans_add_bh(ip->i_gl, dibh, 1);
gfs2_dinode_out(&ip->i_di, dibh->b_data);
brelse(dibh);
}
}

gfs2_trans_end(GFS2_SB(&ip->i_inode));

Expand Down
12 changes: 6 additions & 6 deletions fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
if (gl->gl_aspace)
gfs2_aspace_put(gl->gl_aspace);
fail:
kmem_cache_free(gfs2_glock_cachep, gl);
kmem_cache_free(gfs2_glock_cachep, gl);
return error;
}

Expand Down Expand Up @@ -614,7 +614,7 @@ static int rq_greedy(struct gfs2_holder *gh)
gfs2_holder_uninit(gh);
kfree(container_of(gh, struct greedy, gr_gh));

spin_lock(&gl->gl_spin);
spin_lock(&gl->gl_spin);

return 0;
}
Expand Down Expand Up @@ -1184,11 +1184,11 @@ static void add_to_queue(struct gfs2_holder *gh)
if (existing) {
print_symbol(KERN_WARNING "original: %s\n", existing->gh_ip);
printk(KERN_INFO "pid : %d\n", existing->gh_owner->pid);
printk(KERN_INFO "lock type : %d lock state : %d\n",
printk(KERN_INFO "lock type : %d lock state : %d\n",
existing->gh_gl->gl_name.ln_type, existing->gh_gl->gl_state);
print_symbol(KERN_WARNING "new: %s\n", gh->gh_ip);
printk(KERN_INFO "pid : %d\n", gh->gh_owner->pid);
printk(KERN_INFO "lock type : %d lock state : %d\n",
printk(KERN_INFO "lock type : %d lock state : %d\n",
gl->gl_name.ln_type, gl->gl_state);
BUG();
}
Expand All @@ -1203,7 +1203,7 @@ static void add_to_queue(struct gfs2_holder *gh)
if (gh->gh_flags & LM_FLAG_PRIORITY)
list_add(&gh->gh_list, &gl->gl_waiters3);
else
list_add_tail(&gh->gh_list, &gl->gl_waiters3);
list_add_tail(&gh->gh_list, &gl->gl_waiters3);
}

/**
Expand Down Expand Up @@ -2003,7 +2003,7 @@ void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait)
for (;;) {
cont = 0;
for (x = 0; x < GFS2_GL_HASH_SIZE; x++) {
if (examine_bucket(clear_glock, sdp, x))
if (examine_bucket(clear_glock, sdp, x))
cont = 1;
}

Expand Down
5 changes: 2 additions & 3 deletions fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ struct inode *gfs2_lookup_simple(struct inode *dip, const char *name)

struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
int is_root, struct nameidata *nd)

{
struct super_block *sb = dir->i_sb;
struct gfs2_inode *dip = GFS2_I(dir);
Expand Down Expand Up @@ -491,7 +490,7 @@ static int pick_formal_ino_2(struct gfs2_sbd *sdp, u64 *formal_ino)
error = gfs2_meta_inode_buffer(ip, &bh);
if (error)
goto out_end_trans;

gfs2_inum_range_in(&ir, bh->b_data + sizeof(struct gfs2_dinode));

if (!ir.ir_length) {
Expand Down Expand Up @@ -769,7 +768,7 @@ static int link_dinode(struct gfs2_inode *dip, const struct qstr *name,

error = gfs2_trans_begin(sdp, sdp->sd_max_dirres +
al->al_rgd->rd_ri.ri_length +
2 * RES_DINODE +
2 * RES_DINODE +
RES_STATFS + RES_QUOTA, 0);
if (error)
goto fail_ipreserv;
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/inode.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int gfs2_inode_refresh(struct gfs2_inode *ip);

int gfs2_dinode_dealloc(struct gfs2_inode *inode);
int gfs2_change_nlink(struct gfs2_inode *ip, int diff);
struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
int is_root, struct nameidata *nd);
struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name,
unsigned int mode);
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/lm.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...)

fs_err(sdp, "about to withdraw from the cluster\n");
BUG_ON(sdp->sd_args.ar_debug);


fs_err(sdp, "waiting for outstanding I/O\n");

Expand Down
4 changes: 2 additions & 2 deletions fs/gfs2/locking/dlm/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void process_complete(struct gdlm_lock *lp)

if (lp->lksb.sb_status == -DLM_ECANCEL) {
log_info("complete dlm cancel %x,%llx flags %lx",
lp->lockname.ln_type,
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number,
lp->flags);

Expand Down Expand Up @@ -102,7 +102,7 @@ static void process_complete(struct gdlm_lock *lp)

if (test_and_clear_bit(LFL_CANCEL, &lp->flags)) {
log_info("complete internal cancel %x,%llx",
lp->lockname.ln_type,
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number);
lp->req = lp->cur;
acb.lc_ret |= LM_OUT_CANCELED;
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/lops.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ static void rg_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
gfs2_log_lock(sdp);
sdp->sd_log_num_rg++;
list_add(&le->le_list, &sdp->sd_log_le_rg);
gfs2_log_unlock(sdp);
gfs2_log_unlock(sdp);
}

static void rg_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int __init init_gfs2_fs(void)
error = -ENOMEM;
gfs2_glock_cachep = kmem_cache_create("gfs2_glock",
sizeof(struct gfs2_glock),
0, 0,
0, 0,
gfs2_init_glock_once, NULL);
if (!gfs2_glock_cachep)
goto fail;
Expand Down
4 changes: 2 additions & 2 deletions fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int gfs2_readpages(struct file *file, struct address_space *mapping,
LM_FLAG_TRY_1CB|GL_ATIME|GL_AOP, &gh);
do_unlock = 1;
ret = gfs2_glock_nq_m_atime(1, &gh);
if (ret == GLR_TRYFAILED)
if (ret == GLR_TRYFAILED)
goto out_noerror;
if (unlikely(ret))
goto out_unlock;
Expand Down Expand Up @@ -681,7 +681,7 @@ static unsigned limit = 0;

gl = bd->bd_gl;

fs_warn(sdp, "gl = (%u, %llu)\n",
fs_warn(sdp, "gl = (%u, %llu)\n",
gl->gl_name.ln_type, (unsigned long long)gl->gl_name.ln_number);

fs_warn(sdp, "bd_list_tr = %s, bd_le.le_list = %s\n",
Expand Down
6 changes: 3 additions & 3 deletions fs/gfs2/ops_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int gfs2_get_flags(struct file *filp, u32 __user *ptr)
error = gfs2_glock_nq_m_atime(1, &gh);
if (error)
return error;

iflags = iflags_cvt(gfs2_to_iflags, ip->i_di.di_flags);
if (put_user(iflags, ptr))
error = -EFAULT;
Expand Down Expand Up @@ -299,7 +299,7 @@ static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask)
goto out;
if (IS_APPEND(inode) && (new_flags & GFS2_DIF_APPENDONLY))
goto out;
if (((new_flags ^ flags) & GFS2_DIF_IMMUTABLE) &&
if (((new_flags ^ flags) & GFS2_DIF_IMMUTABLE) &&
!capable(CAP_LINUX_IMMUTABLE))
goto out;
if (!IS_IMMUTABLE(inode)) {
Expand Down Expand Up @@ -541,7 +541,7 @@ static int do_flock(struct file *file, int cmd, struct file_lock *fl)
goto out;
gfs2_glock_hold(gl);
flock_lock_file_wait(file,
&(struct file_lock){.fl_type = F_UNLCK});
&(struct file_lock){.fl_type = F_UNLCK});
gfs2_glock_dq_uninit(fl_gh);
} else {
error = gfs2_glock_get(GFS2_SB(&ip->i_inode),
Expand Down
18 changes: 9 additions & 9 deletions fs/gfs2/ops_fstype.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int init_names(struct gfs2_sbd *sdp, int silent)
brelse(bh);
return -ENOMEM;
}
gfs2_sb_in(sb, bh->b_data);
gfs2_sb_in(sb, bh->b_data);
brelse(bh);

error = gfs2_check_sb(sdp, sb, silent);
Expand Down Expand Up @@ -272,7 +272,7 @@ static int init_sb(struct gfs2_sbd *sdp, int silent, int undo)
}
return 0;
}

error = gfs2_glock_nq_num(sdp, GFS2_SB_LOCK, &gfs2_meta_glops,
LM_ST_SHARED, 0, &sb_gh);
if (error) {
Expand Down Expand Up @@ -358,7 +358,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
error = -EINVAL;
if (!gfs2_jindex_size(sdp)) {
fs_err(sdp, "no journals!\n");
goto fail_jindex;
goto fail_jindex;
}

if (sdp->sd_args.ar_spectator) {
Expand Down Expand Up @@ -789,7 +789,7 @@ static int gfs2_get_sb(struct file_system_type *fs_type, int flags,
return error;
}

static int fill_super_meta(struct super_block *sb, struct super_block *new,
static int fill_super_meta(struct super_block *sb, struct super_block *new,
void *data, int silent)
{
struct gfs2_sbd *sdp = sb->s_fs_info;
Expand Down Expand Up @@ -821,7 +821,7 @@ static int set_bdev_super(struct super_block *s, void *data)
s->s_dev = s->s_bdev->bd_dev;
return 0;
}

static int test_bdev_super(struct super_block *s, void *data)
{
return s->s_bdev == data;
Expand All @@ -835,10 +835,10 @@ static struct super_block* get_gfs2_sb(const char *dev_name)
struct super_block *sb = NULL, *s;
struct list_head *l;
int error;

error = path_lookup(dev_name, LOOKUP_FOLLOW, &nd);
if (error) {
printk(KERN_WARNING "GFS2: path_lookup on %s returned error\n",
printk(KERN_WARNING "GFS2: path_lookup on %s returned error\n",
dev_name);
goto out;
}
Expand Down Expand Up @@ -900,9 +900,9 @@ static int gfs2_get_sb_meta(struct file_system_type *fs_type, int flags,
deactivate_super(new);
goto error;
}

new->s_flags |= MS_ACTIVE;

/* Grab a reference to the gfs2 mount point */
atomic_inc(&sdp->sd_gfs2mnt->mnt_count);
return simple_set_mnt(mnt, new);
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/ops_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ static int gfs2_mknod(struct inode *dir, struct dentry *dentry, int mode,
case S_IFSOCK:
break;
default:
return -EOPNOTSUPP;
return -EOPNOTSUPP;
};

gfs2_holder_init(dip->i_gl, 0, 0, ghs);
Expand Down
2 changes: 1 addition & 1 deletion fs/gfs2/ops_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ static int gfs2_show_options(struct seq_file *s, struct vfsmount *mnt)
return 0;
}

/*
/*
* We have to (at the moment) hold the inodes main lock to cover
* the gap between unlocking the shared lock on the iopen lock and
* taking the exclusive lock. I'd rather do a shared -> exclusive
Expand Down
Loading

0 comments on commit 907b9bc

Please sign in to comment.