page-io.c (c724585b62411f7abdea5b1054b9f1e1e7c964be) page-io.c (5dc23bdd5f846ef868e82f789dfd9b13093f9ba6)
1/*
2 * linux/fs/ext4/page-io.c
3 *
4 * This contains the new page_io functions for ext4
5 *
6 * Written by Theodore Ts'o, 2010.
7 */
8

--- 32 unchanged lines hidden (view full) ---

41}
42
43void ext4_exit_pageio(void)
44{
45 kmem_cache_destroy(io_end_cachep);
46}
47
48/*
1/*
2 * linux/fs/ext4/page-io.c
3 *
4 * This contains the new page_io functions for ext4
5 *
6 * Written by Theodore Ts'o, 2010.
7 */
8

--- 32 unchanged lines hidden (view full) ---

41}
42
43void ext4_exit_pageio(void)
44{
45 kmem_cache_destroy(io_end_cachep);
46}
47
48/*
49 * This function is called by ext4_evict_inode() to make sure there is
50 * no more pending I/O completion work left to do.
51 */
52void ext4_ioend_shutdown(struct inode *inode)
53{
54 wait_queue_head_t *wq = ext4_ioend_wq(inode);
55
56 wait_event(*wq, (atomic_read(&EXT4_I(inode)->i_ioend_count) == 0));
57 /*
58 * We need to make sure the work structure is finished being
59 * used before we let the inode get destroyed.
60 */
61 if (work_pending(&EXT4_I(inode)->i_rsv_conversion_work))
62 cancel_work_sync(&EXT4_I(inode)->i_rsv_conversion_work);
63 if (work_pending(&EXT4_I(inode)->i_unrsv_conversion_work))
64 cancel_work_sync(&EXT4_I(inode)->i_unrsv_conversion_work);
65}
66
67/*
68 * Print an buffer I/O error compatible with the fs/buffer.c. This
69 * provides compatibility with dmesg scrapers that look for a specific
70 * buffer I/O error message. We really need a unified error reporting
71 * structure to userspace ala Digital Unix's uerf system, but it's
72 * probably not going to happen in my lifetime, due to LKML politics...
73 */
74static void buffer_io_error(struct buffer_head *bh)
75{

--- 444 unchanged lines hidden ---
49 * Print an buffer I/O error compatible with the fs/buffer.c. This
50 * provides compatibility with dmesg scrapers that look for a specific
51 * buffer I/O error message. We really need a unified error reporting
52 * structure to userspace ala Digital Unix's uerf system, but it's
53 * probably not going to happen in my lifetime, due to LKML politics...
54 */
55static void buffer_io_error(struct buffer_head *bh)
56{

--- 444 unchanged lines hidden ---