summaryrefslogtreecommitdiff
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2013-01-28 18:43:46 +0400
committerTheodore Ts'o <tytso@mit.edu>2013-01-28 18:43:46 +0400
commit84c17543ab5685d950da73209df0ecda26e72d3b (patch)
treec7f2025fa8bcc209168d171c825060ff95a2be97 /fs/ext4/super.c
parentfe089c77f1466c74f0f19ad2475b1630216b8b19 (diff)
downloadlinux-84c17543ab5685d950da73209df0ecda26e72d3b.tar.xz
ext4: move work from io_end to inode
It does not make much sense to have struct work in ext4_io_end_t because we always use it for only one ext4_io_end_t per inode (the first one in the i_completed_io list). So just move the structure to inode itself. This also allows for a small simplification in processing io_end structures. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index d5d336bd2180..dc0fb7b942cf 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -960,6 +960,7 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)
ei->i_datasync_tid = 0;
atomic_set(&ei->i_ioend_count, 0);
atomic_set(&ei->i_unwritten, 0);
+ INIT_WORK(&ei->i_unwritten_work, ext4_end_io_work);
return &ei->vfs_inode;
}