X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_iget.c;h=07641fc90d61350d834ce2b081382ddbaec32c8e;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=d3a53b67b73c8ffc9a399bd62a4e7ed0f3f3643c;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index d3a53b67b..07641fc90 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c @@ -457,7 +457,7 @@ inode_allocate: error = xfs_iget_core(vp, mp, tp, ino, lock_flags, ipp, bno); if (error) { - make_bad_inode(inode); + vn_mark_bad(vp); if (inode->i_state & I_NEW) unlock_new_inode(inode); iput(inode); @@ -576,11 +576,8 @@ xfs_iput_new(xfs_inode_t *ip, vn_trace_entry(vp, "xfs_iput_new", (inst_t *)__return_address); - /* We shouldn't get here without this being true, but just in case */ - if (inode->i_state & I_NEW) { - make_bad_inode(inode); + if (inode->i_state & I_NEW) unlock_new_inode(inode); - } if (lock_flags) xfs_iunlock(ip, lock_flags); VN_RELE(vp);