ocfs2: get rid of impossible checks
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
fbad2bd132
commit
b19f133674
|
@ -386,19 +386,9 @@ static int ocfs2_read_locked_inode(struct inode *inode,
|
|||
u32 generation = 0;
|
||||
|
||||
status = -EINVAL;
|
||||
if (inode == NULL || inode->i_sb == NULL) {
|
||||
mlog(ML_ERROR, "bad inode\n");
|
||||
return status;
|
||||
}
|
||||
sb = inode->i_sb;
|
||||
osb = OCFS2_SB(sb);
|
||||
|
||||
if (!args) {
|
||||
mlog(ML_ERROR, "bad inode args\n");
|
||||
make_bad_inode(inode);
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* To improve performance of cold-cache inode stats, we take
|
||||
* the cluster lock here if possible.
|
||||
|
|
Loading…
Reference in New Issue