From aba344fdfed81b2c03d6114c54cfd73a486aa10b Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 5 Jul 1999 23:09:37 +0000 Subject: Merge with Linux 2.3.9. --- fs/ufs/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/ufs/util.c') diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 11978a752..e6d5f3a5b 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c @@ -137,8 +137,8 @@ unsigned ubh_max_bcount (struct ufs_buffer_head * ubh) if (!ubh) return 0; for ( i = 0; i < ubh->count; i++ ) - if ( ubh->bh[i]->b_count > max ) - max = ubh->bh[i]->b_count; + if ( atomic_read(&ubh->bh[i]->b_count) > max ) + max = atomic_read(&ubh->bh[i]->b_count); return max; } -- cgit v1.2.3