aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysv
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysv')
-rw-r--r--fs/sysv/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysv/super.c b/fs/sysv/super.c
index 59e76b51142..e92b991e6dd 100644
--- 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)
377 sbi->s_sb = sb; 377 sbi->s_sb = sb;
378 sbi->s_block_base = 0; 378 sbi->s_block_base = 0;
379 sb->s_fs_info = sbi; 379 sb->s_fs_info = sbi;
380 380
381 sb_set_blocksize(sb, BLOCK_SIZE); 381 sb_set_blocksize(sb, BLOCK_SIZE);
382 382
383 for (i = 0; i < sizeof(flavours)/sizeof(flavours[0]) && !size; i++) { 383 for (i = 0; i < ARRAY_SIZE(flavours) && !size; i++) {
384 brelse(bh); 384 brelse(bh);
385 bh = sb_bread(sb, flavours[i].block); 385 bh = sb_bread(sb, flavours[i].block);
386 if (!bh) 386 if (!bh)