Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54581
b: refs/heads/master
c: acb0c85
h: refs/heads/master
i:
  54579: 47a8c6d
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed May 8, 2007
1 parent 21b8e59 commit b70b9c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 578c8183c116e623d53b05d4c79762d053c7090f
refs/heads/master: acb0c854fa9483fa85e377b9f342352ea814a580
4 changes: 2 additions & 2 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void clear_inode(struct inode *inode)
BUG_ON(inode->i_state & I_CLEAR);
wait_on_inode(inode);
DQUOT_DROP(inode);
if (inode->i_sb && inode->i_sb->s_op->clear_inode)
if (inode->i_sb->s_op->clear_inode)
inode->i_sb->s_op->clear_inode(inode);
if (S_ISBLK(inode->i_mode) && inode->i_bdev)
bd_forget(inode);
Expand Down Expand Up @@ -1040,7 +1040,7 @@ static void generic_forget_inode(struct inode *inode)
if (!(inode->i_state & (I_DIRTY|I_LOCK)))
list_move(&inode->i_list, &inode_unused);
inodes_stat.nr_unused++;
if (!sb || (sb->s_flags & MS_ACTIVE)) {
if (sb->s_flags & MS_ACTIVE) {
spin_unlock(&inode_lock);
return;
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/fs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ static int file_ioctl(struct file *filp, unsigned int cmd,
return put_user(res, p);
}
case FIGETBSZ:
if (inode->i_sb == NULL)
return -EBADF;
return put_user(inode->i_sb->s_blocksize, p);
case FIONREAD:
return put_user(i_size_read(inode) - filp->f_pos, p);
Expand Down

0 comments on commit b70b9c0

Please sign in to comment.