Skip to content

Commit 60e6679

Browse files
committed
ext4: Drop whitespace at end of lines
This patch was generated using: #!/usr/bin/perl -i while (<>) { s/[ ]+$//; print; } Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent 4d92dc0 commit 60e6679

9 files changed

Lines changed: 23 additions & 23 deletions

File tree

‎fs/ext4/block_validity.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ static int add_system_zone(struct ext4_sb_info *sbi,
7272
else if (start_blk >= (entry->start_blk + entry->count))
7373
n = &(*n)->rb_right;
7474
else {
75-
if (start_blk + count > (entry->start_blk +
75+
if (start_blk + count > (entry->start_blk +
7676
entry->count))
77-
entry->count = (start_blk + count -
77+
entry->count = (start_blk + count -
7878
entry->start_blk);
7979
new_node = *n;
8080
new_entry = rb_entry(new_node, struct ext4_system_zone,

‎fs/ext4/ext4.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ typedef __u32 ext4_lblk_t;
7575
typedef unsigned int ext4_group_t;
7676

7777
/*
78-
* Flags used in mballoc's allocation_context flags field.
78+
* Flags used in mballoc's allocation_context flags field.
7979
*
8080
* Also used to show what's going on for debugging purposes when the
8181
* flag field is exported via the traceport interface
@@ -470,7 +470,7 @@ struct ext4_new_group_data {
470470
#define EXT4_GET_BLOCKS_CREATE_UNINIT_EXT (EXT4_GET_BLOCKS_UNINIT_EXT|\
471471
EXT4_GET_BLOCKS_CREATE)
472472
/* Caller is from the delayed allocation writeout path,
473-
so set the magic i_delalloc_reserve_flag after taking the
473+
so set the magic i_delalloc_reserve_flag after taking the
474474
inode allocation semaphore for */
475475
#define EXT4_GET_BLOCKS_DELALLOC_RESERVE 0x0004
476476
/* caller is from the direct IO path, request to creation of an

‎fs/ext4/extents.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ static ext4_fsblk_t ext4_ext_find_goal(struct inode *inode,
182182
if (flex_size >= EXT4_FLEX_SIZE_DIR_ALLOC_SCHEME) {
183183
/*
184184
* If there are at least EXT4_FLEX_SIZE_DIR_ALLOC_SCHEME
185-
* block groups per flexgroup, reserve the first block
186-
* group for directories and special files. Regular
185+
* block groups per flexgroup, reserve the first block
186+
* group for directories and special files. Regular
187187
* files will start at the second block group. This
188-
* tends to speed up directory access and improves
188+
* tends to speed up directory access and improves
189189
* fsck times.
190190
*/
191191
block_group &= ~(flex_size-1);
@@ -2034,7 +2034,7 @@ ext4_ext_in_cache(struct inode *inode, ext4_lblk_t block,
20342034
struct ext4_ext_cache *cex;
20352035
int ret = EXT4_EXT_CACHE_NO;
20362036

2037-
/*
2037+
/*
20382038
* We borrow i_block_reservation_lock to protect i_cached_extent
20392039
*/
20402040
spin_lock(&EXT4_I(inode)->i_block_reservation_lock);

‎fs/ext4/fsync.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int ext4_sync_file(struct file *file, struct dentry *dentry, int datasync)
6666
ret = flush_completed_IO(inode);
6767
if (ret < 0)
6868
return ret;
69-
69+
7070
if (!journal)
7171
return simple_fsync(file, dentry, datasync);
7272

‎fs/ext4/inode.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ static int ext4_alloc_branch(handle_t *handle, struct inode *inode,
784784
/* Allocation failed, free what we already allocated */
785785
ext4_free_blocks(handle, inode, 0, new_blocks[0], 1, 0);
786786
for (i = 1; i <= n ; i++) {
787-
/*
787+
/*
788788
* branch[i].bh is newly allocated, so there is no
789789
* need to revoke the block, which is why we don't
790790
* need to set EXT4_FREE_BLOCKS_METADATA.
@@ -874,7 +874,7 @@ static int ext4_splice_branch(handle_t *handle, struct inode *inode,
874874

875875
err_out:
876876
for (i = 1; i <= num; i++) {
877-
/*
877+
/*
878878
* branch[i].bh is newly allocated, so there is no
879879
* need to revoke the block, which is why we don't
880880
* need to set EXT4_FREE_BLOCKS_METADATA.

‎fs/ext4/ioctl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
258258
if (me.moved_len > 0)
259259
file_remove_suid(donor_filp);
260260

261-
if (copy_to_user((struct move_extent __user *)arg,
261+
if (copy_to_user((struct move_extent __user *)arg,
262262
&me, sizeof(me)))
263263
err = -EFAULT;
264264
mext_out:

‎fs/ext4/mballoc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,7 @@ int __init init_ext4_mballoc(void)
26912691

26922692
void exit_ext4_mballoc(void)
26932693
{
2694-
/*
2694+
/*
26952695
* Wait for completion of call_rcu()'s on ext4_pspace_cachep
26962696
* before destroying the slab cache.
26972697
*/
@@ -3330,7 +3330,7 @@ static void ext4_mb_put_pa(struct ext4_allocation_context *ac,
33303330
spin_unlock(&pa->pa_lock);
33313331

33323332
grp_blk = pa->pa_pstart;
3333-
/*
3333+
/*
33343334
* If doing group-based preallocation, pa_pstart may be in the
33353335
* next group when pa is used up
33363336
*/
@@ -4534,12 +4534,12 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
45344534
if (!bh)
45354535
tbh = sb_find_get_block(inode->i_sb,
45364536
block + i);
4537-
ext4_forget(handle, flags & EXT4_FREE_BLOCKS_METADATA,
4537+
ext4_forget(handle, flags & EXT4_FREE_BLOCKS_METADATA,
45384538
inode, tbh, block + i);
45394539
}
45404540
}
45414541

4542-
/*
4542+
/*
45434543
* We need to make sure we don't reuse the freed block until
45444544
* after the transaction is committed, which we can do by
45454545
* treating the block as metadata, below. We make an

‎fs/ext4/namei.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ unsigned int ext4_rec_len_from_disk(__le16 dlen, unsigned blocksize)
187187
return blocksize;
188188
return (len & 65532) | ((len & 3) << 16);
189189
}
190-
190+
191191
__le16 ext4_rec_len_to_disk(unsigned len, unsigned blocksize)
192192
{
193193
if ((len > blocksize) || (blocksize > (1 << 18)) || (len & 3))
@@ -197,7 +197,7 @@ __le16 ext4_rec_len_to_disk(unsigned len, unsigned blocksize)
197197
if (len == blocksize) {
198198
if (blocksize == 65536)
199199
return cpu_to_le16(EXT4_MAX_REC_LEN);
200-
else
200+
else
201201
return cpu_to_le16(0);
202202
}
203203
return cpu_to_le16((len & 65532) | ((len >> 16) & 3));
@@ -349,7 +349,7 @@ struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir,
349349
brelse(bh);
350350
}
351351
if (bcount)
352-
printk(KERN_DEBUG "%snames %u, fullness %u (%u%%)\n",
352+
printk(KERN_DEBUG "%snames %u, fullness %u (%u%%)\n",
353353
levels ? "" : " ", names, space/bcount,
354354
(space/bcount)*100/blocksize);
355355
return (struct stats) { names, space, bcount};
@@ -653,7 +653,7 @@ int ext4_htree_fill_tree(struct file *dir_file, __u32 start_hash,
653653
int ret, err;
654654
__u32 hashval;
655655

656-
dxtrace(printk(KERN_DEBUG "In htree_fill_tree, start hash: %x:%x\n",
656+
dxtrace(printk(KERN_DEBUG "In htree_fill_tree, start hash: %x:%x\n",
657657
start_hash, start_minor_hash));
658658
dir = dir_file->f_path.dentry->d_inode;
659659
if (!(ext4_test_inode_flag(dir, EXT4_INODE_INDEX))) {
@@ -1141,7 +1141,7 @@ dx_move_dirents(char *from, char *to, struct dx_map_entry *map, int count,
11411141
unsigned rec_len = 0;
11421142

11431143
while (count--) {
1144-
struct ext4_dir_entry_2 *de = (struct ext4_dir_entry_2 *)
1144+
struct ext4_dir_entry_2 *de = (struct ext4_dir_entry_2 *)
11451145
(from + (map->offs<<2));
11461146
rec_len = EXT4_DIR_REC_LEN(de->name_len);
11471147
memcpy (to, de, rec_len);

‎fs/ext4/super.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ static unsigned long ext4_get_stripe_size(struct ext4_sb_info *sbi)
22162216
struct ext4_attr {
22172217
struct attribute attr;
22182218
ssize_t (*show)(struct ext4_attr *, struct ext4_sb_info *, char *);
2219-
ssize_t (*store)(struct ext4_attr *, struct ext4_sb_info *,
2219+
ssize_t (*store)(struct ext4_attr *, struct ext4_sb_info *,
22202220
const char *, size_t);
22212221
int offset;
22222222
};
@@ -3383,7 +3383,7 @@ static int ext4_commit_super(struct super_block *sb, int sync)
33833383
if (!(sb->s_flags & MS_RDONLY))
33843384
es->s_wtime = cpu_to_le32(get_seconds());
33853385
es->s_kbytes_written =
3386-
cpu_to_le64(EXT4_SB(sb)->s_kbytes_written +
3386+
cpu_to_le64(EXT4_SB(sb)->s_kbytes_written +
33873387
((part_stat_read(sb->s_bdev->bd_part, sectors[1]) -
33883388
EXT4_SB(sb)->s_sectors_written_start) >> 1));
33893389
ext4_free_blocks_count_set(es, percpu_counter_sum_positive(

0 commit comments

Comments
 (0)