Files
android_kernel_xiaomi_sm8450/fs/btrfs
Mitch Harder 8bedd51b61 Btrfs: Check for NULL page in extent_range_uptodate
A user has encountered a NULL pointer kernel oops in btrfs when
encountering media errors.  The problem has been identified
as an unhandled NULL pointer returned from find_get_page().
This modification simply checks for a NULL page, and returns
with an error if found (the extent_range_uptodate() function
returns 1 on errors).

After testing this patch, the user reported that the error with
the NULL pointer oops was solved.  However, there is still a
remaining problem with a thread becoming stuck in
wait_on_page_locked(page) in the read_extent_buffer_pages(...)
function in extent_io.c

       for (i = start_i; i < num_pages; i++) {
               page = extent_buffer_page(eb, i);
               wait_on_page_locked(page);
               if (!PageUptodate(page))
                       ret = -EIO;
       }

This patch leaves the issue with the locked page yet to be resolved.

Signed-off-by: Mitch Harder <mitch.harder@sabayonlinux.org>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2012-01-26 15:01:11 -05:00
..
2012-01-04 16:26:38 +01:00
2011-12-22 16:22:27 +01:00
2012-01-16 15:29:43 -05:00
2011-07-26 16:49:47 -07:00
2008-09-25 11:04:06 -04:00
2012-01-16 15:38:24 -05:00
2012-01-16 15:29:43 -05:00
2012-01-16 22:04:49 +02:00
2011-10-20 18:10:50 +02:00
2011-06-17 14:54:18 -04:00
2012-01-16 15:29:43 -05:00
2011-05-28 07:00:39 -04:00
2012-01-16 15:38:24 -05:00