Skip to content

Commit

Permalink
ext4: use 'inode' variable that is already dereferenced
Browse files Browse the repository at this point in the history
Tested: xfs tests

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Anatol Pomozov authored and Theodore Ts'o committed Nov 8, 2012
1 parent 3779473 commit 8d8c182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/page-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int ext4_end_io(ext4_io_end_t *io)
inode_dio_done(inode);
/* Wake up anyone waiting on unwritten extent conversion */
if (atomic_dec_and_test(&EXT4_I(inode)->i_unwritten))
wake_up_all(ext4_ioend_wq(io->inode));
wake_up_all(ext4_ioend_wq(inode));
return ret;
}

Expand Down

0 comments on commit 8d8c182

Please sign in to comment.