Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36196
b: refs/heads/master
c: 577c4eb
h: refs/heads/master
v: v3
  • Loading branch information
Theodore Ts'o authored and Linus Torvalds committed Sep 27, 2006
1 parent 3c729ff commit 2636066
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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: eaf796e7ef6014f208c409b2b14fddcfaafe7e3a
refs/heads/master: 577c4eb09d1034d0739e3135fd2cff50588024be
2 changes: 1 addition & 1 deletion trunk/fs/file_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void fastcall __fput(struct file *file)
if (file->f_op && file->f_op->release)
file->f_op->release(inode, file);
security_file_free(file);
if (unlikely(inode->i_cdev != NULL))
if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL))
cdev_put(inode->i_cdev);
fops_put(file->f_op);
if (file->f_mode & FMODE_WRITE)
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void clear_inode(struct inode *inode)
inode->i_sb->s_op->clear_inode(inode);
if (S_ISBLK(inode->i_mode) && inode->i_bdev)
bd_forget(inode);
if (inode->i_cdev)
if (S_ISCHR(inode->i_mode) && inode->i_cdev)
cd_forget(inode);
inode->i_state = I_CLEAR;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ struct inode {
union {
struct pipe_inode_info *i_pipe;
struct block_device *i_bdev;
struct cdev *i_cdev;
};
struct cdev *i_cdev;
int i_cindex;

__u32 i_generation;
Expand Down

0 comments on commit 2636066

Please sign in to comment.