aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bfs')
-rw-r--r--fs/bfs/bfs.h4
-rw-r--r--fs/bfs/inode.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/fs/bfs/bfs.h b/fs/bfs/bfs.h
index 70f5d3a8eede..d1a6cd10afce 100644
--- a/fs/bfs/bfs.h
+++ b/fs/bfs/bfs.h
@@ -16,8 +16,8 @@ struct bfs_sb_info {
16 unsigned long si_freei; 16 unsigned long si_freei;
17 unsigned long si_lf_eblk; 17 unsigned long si_lf_eblk;
18 unsigned long si_lasti; 18 unsigned long si_lasti;
19 unsigned long * si_imap; 19 unsigned long *si_imap;
20 struct buffer_head * si_sbh; /* buffer header w/superblock */ 20 struct buffer_head *si_sbh; /* buffer header w/superblock */
21}; 21};
22 22
23/* 23/*
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c
index 8db623838b50..c8b3982e11ca 100644
--- a/fs/bfs/inode.c
+++ b/fs/bfs/inode.c
@@ -380,7 +380,7 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent)
380 struct bfs_inode *di; 380 struct bfs_inode *di;
381 int block = (i - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1; 381 int block = (i - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1;
382 int off = (i - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; 382 int off = (i - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK;
383 unsigned long sblock, eblock; 383 unsigned long eblock;
384 384
385 if (!off) { 385 if (!off) {
386 brelse(bh); 386 brelse(bh);
@@ -399,7 +399,6 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent)
399 set_bit(i, info->si_imap); 399 set_bit(i, info->si_imap);
400 info->si_freeb -= BFS_FILEBLOCKS(di); 400 info->si_freeb -= BFS_FILEBLOCKS(di);
401 401
402 sblock = le32_to_cpu(di->i_sblock);
403 eblock = le32_to_cpu(di->i_eblock); 402 eblock = le32_to_cpu(di->i_eblock);
404 if (eblock > info->si_lf_eblk) 403 if (eblock > info->si_lf_eblk)
405 info->si_lf_eblk = eblock; 404 info->si_lf_eblk = eblock;