git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
fs
/
sysv
/
super.c
diff --git
a/fs/sysv/super.c
b/fs/sysv/super.c
index
59e76b5
..
e92b991
100644
(file)
--- a/
fs/sysv/super.c
+++ b/
fs/sysv/super.c
@@
-377,10
+377,10
@@
static int sysv_fill_super(struct super_block *sb, void *data, int silent)
sbi->s_sb = sb;
sbi->s_block_base = 0;
sb->s_fs_info = sbi;
sbi->s_sb = sb;
sbi->s_block_base = 0;
sb->s_fs_info = sbi;
-
+
sb_set_blocksize(sb, BLOCK_SIZE);
sb_set_blocksize(sb, BLOCK_SIZE);
- for (i = 0; i <
sizeof(flavours)/sizeof(flavours[0]
) && !size; i++) {
+ for (i = 0; i <
ARRAY_SIZE(flavours
) && !size; i++) {
brelse(bh);
bh = sb_bread(sb, flavours[i].block);
if (!bh)
brelse(bh);
bh = sb_bread(sb, flavours[i].block);
if (!bh)