diff options
Diffstat (limited to 'fs/ufs/util.c')
-rw-r--r-- | fs/ufs/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |