Commit 75b25b4cabb7ce956c36442bf8225659b1864866
Committed by
Linus Torvalds
1 parent
7d135a5d50
Exists in
master
and in
7 other branches
bfs: assorted cleanups
This patch makes the following cleanups: o removing an unused variable from bfs_fill_super(); o removing unneeded blank spaces from pointer definitions. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi> Cc: Tigran Aivazian <tigran_aivazian@symantec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 2 changed files with 3 additions and 4 deletions Side-by-side Diff
fs/bfs/bfs.h
... | ... | @@ -16,8 +16,8 @@ |
16 | 16 | unsigned long si_freei; |
17 | 17 | unsigned long si_lf_eblk; |
18 | 18 | unsigned long si_lasti; |
19 | - unsigned long * si_imap; | |
20 | - struct buffer_head * si_sbh; /* buffer header w/superblock */ | |
19 | + unsigned long *si_imap; | |
20 | + struct buffer_head *si_sbh; /* buffer header w/superblock */ | |
21 | 21 | }; |
22 | 22 | |
23 | 23 | /* |
fs/bfs/inode.c
... | ... | @@ -380,7 +380,7 @@ |
380 | 380 | struct bfs_inode *di; |
381 | 381 | int block = (i - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1; |
382 | 382 | int off = (i - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; |
383 | - unsigned long sblock, eblock; | |
383 | + unsigned long eblock; | |
384 | 384 | |
385 | 385 | if (!off) { |
386 | 386 | brelse(bh); |
... | ... | @@ -399,7 +399,6 @@ |
399 | 399 | set_bit(i, info->si_imap); |
400 | 400 | info->si_freeb -= BFS_FILEBLOCKS(di); |
401 | 401 | |
402 | - sblock = le32_to_cpu(di->i_sblock); | |
403 | 402 | eblock = le32_to_cpu(di->i_eblock); |
404 | 403 | if (eblock > info->si_lf_eblk) |
405 | 404 | info->si_lf_eblk = eblock; |