Skip to content

Commit e9ad562

Browse files
Dave KleikampLinus Torvalds
authored andcommitted
[PATCH] ext3: More whitespace cleanups
More white space cleanups in preparation of cloning ext4 from ext3. Removing spaces that precede a tab. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7543fc7 commit e9ad562

14 files changed

Lines changed: 48 additions & 48 deletions

File tree

‎fs/ext3/acl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ext3_set_acl(handle_t *handle, struct inode *inode, int type,
258258
default:
259259
return -EINVAL;
260260
}
261-
if (acl) {
261+
if (acl) {
262262
value = ext3_acl_to_disk(acl, &size);
263263
if (IS_ERR(value))
264264
return (int)PTR_ERR(value);

‎fs/ext3/balloc.c‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
/**
4242
* ext3_get_group_desc() -- load group descriptor from disk
43-
* @sb: super block
43+
* @sb: super block
4444
* @block_group: given block group
4545
* @bh: pointer to the buffer head to store the block
4646
* group descriptor
@@ -355,7 +355,7 @@ void ext3_init_block_alloc_info(struct inode *inode)
355355
rsv->rsv_start = EXT3_RESERVE_WINDOW_NOT_ALLOCATED;
356356
rsv->rsv_end = EXT3_RESERVE_WINDOW_NOT_ALLOCATED;
357357

358-
/*
358+
/*
359359
* if filesystem is mounted with NORESERVATION, the goal
360360
* reservation window size is set to zero to indicate
361361
* block reservation is off
@@ -681,7 +681,7 @@ bitmap_search_next_usable_block(ext3_grpblk_t start, struct buffer_head *bh,
681681
jbd_lock_bh_state(bh);
682682
if (jh->b_committed_data)
683683
start = ext3_find_next_zero_bit(jh->b_committed_data,
684-
maxblocks, next);
684+
maxblocks, next);
685685
jbd_unlock_bh_state(bh);
686686
}
687687
return -1;
@@ -790,10 +790,10 @@ claim_block(spinlock_t *lock, ext3_grpblk_t block, struct buffer_head *bh)
790790
* and at last, allocate the blocks by claiming the found free bit as allocated.
791791
*
792792
* To set the range of this allocation:
793-
* if there is a reservation window, only try to allocate block(s) from the
793+
* if there is a reservation window, only try to allocate block(s) from the
794794
* file's own reservation window;
795795
* Otherwise, the allocation range starts from the give goal block, ends at
796-
* the block group's last block.
796+
* the block group's last block.
797797
*
798798
* If we failed to allocate the desired block then we may end up crossing to a
799799
* new bitmap. In that case we must release write access to the old one via
@@ -880,36 +880,36 @@ ext3_try_to_allocate(struct super_block *sb, handle_t *handle, int group,
880880
}
881881

882882
/**
883-
* find_next_reservable_window():
883+
* find_next_reservable_window():
884884
* find a reservable space within the given range.
885885
* It does not allocate the reservation window for now:
886886
* alloc_new_reservation() will do the work later.
887887
*
888-
* @search_head: the head of the searching list;
888+
* @search_head: the head of the searching list;
889889
* This is not necessarily the list head of the whole filesystem
890890
*
891891
* We have both head and start_block to assist the search
892892
* for the reservable space. The list starts from head,
893893
* but we will shift to the place where start_block is,
894894
* then start from there, when looking for a reservable space.
895895
*
896-
* @size: the target new reservation window size
896+
* @size: the target new reservation window size
897897
*
898-
* @group_first_block: the first block we consider to start
898+
* @group_first_block: the first block we consider to start
899899
* the real search from
900900
*
901-
* @last_block:
901+
* @last_block:
902902
* the maximum block number that our goal reservable space
903903
* could start from. This is normally the last block in this
904904
* group. The search will end when we found the start of next
905905
* possible reservable space is out of this boundary.
906906
* This could handle the cross boundary reservation window
907907
* request.
908908
*
909-
* basically we search from the given range, rather than the whole
910-
* reservation double linked list, (start_block, last_block)
911-
* to find a free region that is of my size and has not
912-
* been reserved.
909+
* basically we search from the given range, rather than the whole
910+
* reservation double linked list, (start_block, last_block)
911+
* to find a free region that is of my size and has not
912+
* been reserved.
913913
*
914914
*/
915915
static int find_next_reservable_window(
@@ -962,7 +962,7 @@ static int find_next_reservable_window(
962962
/*
963963
* Found a reserveable space big enough. We could
964964
* have a reservation across the group boundary here
965-
*/
965+
*/
966966
break;
967967
}
968968
}
@@ -998,7 +998,7 @@ static int find_next_reservable_window(
998998
}
999999

10001000
/**
1001-
* alloc_new_reservation()--allocate a new reservation window
1001+
* alloc_new_reservation()--allocate a new reservation window
10021002
*
10031003
* To make a new reservation, we search part of the filesystem
10041004
* reservation list (the list that inside the group). We try to

‎fs/ext3/dir.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int ext3_check_dir_entry (const char * function, struct inode * dir,
6767
unsigned long offset)
6868
{
6969
const char * error_msg = NULL;
70-
const int rlen = le16_to_cpu(de->rec_len);
70+
const int rlen = le16_to_cpu(de->rec_len);
7171

7272
if (rlen < EXT3_DIR_REC_LEN(1))
7373
error_msg = "rec_len is smaller than minimal";

‎fs/ext3/hash.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int ext3fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
9595
__u32 minor_hash = 0;
9696
const char *p;
9797
int i;
98-
__u32 in[8], buf[4];
98+
__u32 in[8], buf[4];
9999

100100
/* Initialize the default seed for the hash checksum functions */
101101
buf[0] = 0x67452301;

‎fs/ext3/inode.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
* Copyright (C) 1991, 1992 Linus Torvalds
1414
*
1515
* Goal-directed block allocation by Stephen Tweedie
16-
* (sct@redhat.com), 1993, 1998
16+
* (sct@redhat.com), 1993, 1998
1717
* Big-endian to little-endian byte-swapping/bitmaps by
1818
* David S. Miller (davem@caip.rutgers.edu), 1995
1919
* 64-bit file support on 64-bit platforms by Jakub Jelinek
20-
* (jj@sunsite.ms.mff.cuni.cz)
20+
* (jj@sunsite.ms.mff.cuni.cz)
2121
*
2222
* Assorted race fixes, rewrite of ext3_get_block() by Al Viro, 2000
2323
*/
@@ -470,7 +470,7 @@ static ext3_fsblk_t ext3_find_goal(struct inode *inode, long block,
470470
* ext3_blks_to_allocate: Look up the block map and count the number
471471
* of direct blocks need to be allocated for the given branch.
472472
*
473-
* @branch: chain of indirect blocks
473+
* @branch: chain of indirect blocks
474474
* @k: number of blocks need for indirect blocks
475475
* @blks: number of data blocks to be mapped.
476476
* @blocks_to_boundary: the offset in the indirect block
@@ -1098,7 +1098,7 @@ static int walk_page_buffers( handle_t *handle,
10981098

10991099
for ( bh = head, block_start = 0;
11001100
ret == 0 && (bh != head || !block_start);
1101-
block_start = block_end, bh = next)
1101+
block_start = block_end, bh = next)
11021102
{
11031103
next = bh->b_this_page;
11041104
block_end = block_start + blocksize;

‎fs/ext3/namei.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
* Big-endian to little-endian byte-swapping/bitmaps by
1616
* David S. Miller (davem@caip.rutgers.edu), 1995
1717
* Directory entry file type support and forward compatibility hooks
18-
* for B-tree directories by Theodore Ts'o (tytso@mit.edu), 1998
18+
* for B-tree directories by Theodore Ts'o (tytso@mit.edu), 1998
1919
* Hash Tree Directory indexing (c)
20-
* Daniel Phillips, 2001
20+
* Daniel Phillips, 2001
2121
* Hash Tree Directory indexing porting
22-
* Christopher Li, 2002
22+
* Christopher Li, 2002
2323
* Hash Tree Directory indexing cleanup
24-
* Theodore Ts'o, 2002
24+
* Theodore Ts'o, 2002
2525
*/
2626

2727
#include <linux/fs.h>
@@ -278,7 +278,7 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_ent
278278
((char *) de - base));
279279
}
280280
space += EXT3_DIR_REC_LEN(de->name_len);
281-
names++;
281+
names++;
282282
}
283283
de = (struct ext3_dir_entry_2 *) ((char *) de + le16_to_cpu(de->rec_len));
284284
}
@@ -1688,7 +1688,7 @@ static int ext3_mknod (struct inode * dir, struct dentry *dentry,
16881688

16891689
retry:
16901690
handle = ext3_journal_start(dir, EXT3_DATA_TRANS_BLOCKS(dir->i_sb) +
1691-
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 3 +
1691+
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 3 +
16921692
2*EXT3_QUOTA_INIT_BLOCKS(dir->i_sb));
16931693
if (IS_ERR(handle))
16941694
return PTR_ERR(handle);
@@ -1816,7 +1816,7 @@ static int empty_dir (struct inode * inode)
18161816
!le32_to_cpu(de1->inode) ||
18171817
strcmp (".", de->name) ||
18181818
strcmp ("..", de1->name)) {
1819-
ext3_warning (inode->i_sb, "empty_dir",
1819+
ext3_warning (inode->i_sb, "empty_dir",
18201820
"bad directory (dir #%lu) - no `.' or `..'",
18211821
inode->i_ino);
18221822
brelse (bh);
@@ -2129,7 +2129,7 @@ static int ext3_symlink (struct inode * dir,
21292129

21302130
retry:
21312131
handle = ext3_journal_start(dir, EXT3_DATA_TRANS_BLOCKS(dir->i_sb) +
2132-
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 5 +
2132+
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 5 +
21332133
2*EXT3_QUOTA_INIT_BLOCKS(dir->i_sb));
21342134
if (IS_ERR(handle))
21352135
return PTR_ERR(handle);
@@ -2227,7 +2227,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry,
22272227
DQUOT_INIT(new_dentry->d_inode);
22282228
handle = ext3_journal_start(old_dir, 2 *
22292229
EXT3_DATA_TRANS_BLOCKS(old_dir->i_sb) +
2230-
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 2);
2230+
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 2);
22312231
if (IS_ERR(handle))
22322232
return PTR_ERR(handle);
22332233

‎fs/ext3/super.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,8 @@ static match_table_t tokens = {
734734

735735
static ext3_fsblk_t get_sb_block(void **data)
736736
{
737-
ext3_fsblk_t sb_block;
738-
char *options = (char *) *data;
737+
ext3_fsblk_t sb_block;
738+
char *options = (char *) *data;
739739

740740
if (!options || strncmp(options, "sb=", 3) != 0)
741741
return 1; /* Default location */
@@ -2740,7 +2740,7 @@ static int __init init_ext3_fs(void)
27402740
out:
27412741
destroy_inodecache();
27422742
out1:
2743-
exit_ext3_xattr();
2743+
exit_ext3_xattr();
27442744
return err;
27452745
}
27462746

‎fs/jbd/checkpoint.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static int journal_clean_one_cp_list(struct journal_head *jh, int *released)
480480
if (!jh)
481481
return 0;
482482

483-
last_jh = jh->b_cpprev;
483+
last_jh = jh->b_cpprev;
484484
do {
485485
jh = next_jh;
486486
next_jh = jh->b_cpnext;

‎fs/jbd/journal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static int kjournald(void *arg)
181181
transaction->t_expires))
182182
should_sleep = 0;
183183
if (journal->j_flags & JFS_UNMOUNT)
184-
should_sleep = 0;
184+
should_sleep = 0;
185185
if (should_sleep) {
186186
spin_unlock(&journal->j_state_lock);
187187
schedule();

‎fs/jbd/recovery.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static int do_one_pass(journal_t *journal,
314314
unsigned long next_log_block;
315315
int err, success = 0;
316316
journal_superblock_t * sb;
317-
journal_header_t * tmp;
317+
journal_header_t * tmp;
318318
struct buffer_head * bh;
319319
unsigned int sequence;
320320
int blocktype;

0 commit comments

Comments
 (0)