diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-01 12:48:28 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-01 12:48:28 +0100 |
commit | 645af4e9e0e32481e3336dda813688732c7e5f0f (patch) | |
tree | 931b31f3b6e0879df0f9a1d58ffd040d9a652f2e /fs/ocfs2/super.c | |
parent | ecc25fbd6b9e07b33895c61ddf84006b00f55d99 (diff) | |
parent | 55f2b78995826d549401bdf20abeac1832636bb6 (diff) |
Merge branch 'x86/pat' into x86/core
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index b1cb38fbe80..7ac83a81ee5 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1537,6 +1537,13 @@ static int ocfs2_get_sector(struct super_block *sb, unlock_buffer(*bh); ll_rw_block(READ, 1, bh); wait_on_buffer(*bh); + if (!buffer_uptodate(*bh)) { + mlog_errno(-EIO); + brelse(*bh); + *bh = NULL; + return -EIO; + } + return 0; } @@ -1747,6 +1754,7 @@ static int ocfs2_initialize_super(struct super_block *sb, INIT_LIST_HEAD(&osb->blocked_lock_list); osb->blocked_lock_count = 0; spin_lock_init(&osb->osb_lock); + spin_lock_init(&osb->osb_xattr_lock); ocfs2_init_inode_steal_slot(osb); atomic_set(&osb->alloc_stats.moves, 0); |