diff options
Diffstat (limited to 'fs/ext4/page-io.c')
-rw-r--r-- | fs/ext4/page-io.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 090b3498638e..d77d15f4b674 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c | |||
@@ -128,9 +128,6 @@ static void ext4_release_io_end(ext4_io_end_t *io_end) | |||
128 | BUG_ON(io_end->flag & EXT4_IO_END_UNWRITTEN); | 128 | BUG_ON(io_end->flag & EXT4_IO_END_UNWRITTEN); |
129 | WARN_ON(io_end->handle); | 129 | WARN_ON(io_end->handle); |
130 | 130 | ||
131 | if (atomic_dec_and_test(&EXT4_I(io_end->inode)->i_ioend_count)) | ||
132 | wake_up_all(ext4_ioend_wq(io_end->inode)); | ||
133 | |||
134 | for (bio = io_end->bio; bio; bio = next_bio) { | 131 | for (bio = io_end->bio; bio; bio = next_bio) { |
135 | next_bio = bio->bi_private; | 132 | next_bio = bio->bi_private; |
136 | ext4_finish_bio(bio); | 133 | ext4_finish_bio(bio); |
@@ -139,16 +136,6 @@ static void ext4_release_io_end(ext4_io_end_t *io_end) | |||
139 | kmem_cache_free(io_end_cachep, io_end); | 136 | kmem_cache_free(io_end_cachep, io_end); |
140 | } | 137 | } |
141 | 138 | ||
142 | static void ext4_clear_io_unwritten_flag(ext4_io_end_t *io_end) | ||
143 | { | ||
144 | struct inode *inode = io_end->inode; | ||
145 | |||
146 | io_end->flag &= ~EXT4_IO_END_UNWRITTEN; | ||
147 | /* Wake up anyone waiting on unwritten extent conversion */ | ||
148 | if (atomic_dec_and_test(&EXT4_I(inode)->i_unwritten)) | ||
149 | wake_up_all(ext4_ioend_wq(inode)); | ||
150 | } | ||
151 | |||
152 | /* | 139 | /* |
153 | * Check a range of space and convert unwritten extents to written. Note that | 140 | * Check a range of space and convert unwritten extents to written. Note that |
154 | * we are protected from truncate touching same part of extent tree by the | 141 | * we are protected from truncate touching same part of extent tree by the |
@@ -265,7 +252,6 @@ ext4_io_end_t *ext4_init_io_end(struct inode *inode, gfp_t flags) | |||
265 | { | 252 | { |
266 | ext4_io_end_t *io = kmem_cache_zalloc(io_end_cachep, flags); | 253 | ext4_io_end_t *io = kmem_cache_zalloc(io_end_cachep, flags); |
267 | if (io) { | 254 | if (io) { |
268 | atomic_inc(&EXT4_I(inode)->i_ioend_count); | ||
269 | io->inode = inode; | 255 | io->inode = inode; |
270 | INIT_LIST_HEAD(&io->list); | 256 | INIT_LIST_HEAD(&io->list); |
271 | atomic_set(&io->count, 1); | 257 | atomic_set(&io->count, 1); |