Qu Fuping 3d9b1cdd24 JFS: fsync wrong behavior when I/O failure occurs
This is half of a patch that Qu Fuping submitted in April.  The first part
was applied to fs/mpage.c in 2.6.12-rc4.

jfs_fsync should return error, but it doesn't wait for the metadata page to
be uptodate, e.g.:
jfs_fsync->jfs_commit_inode->txCommit->diWrite->read_metapage->
__get_metapage->read_cache_page reads a page from disk. Because read is
async, when read_cache_page: err = filler(data, page), filler will not
return error, it just submits I/O request and returns. So, page is not
uptodate.  Checking only if(IS_ERROR(mp->page)) is not enough, we should
add "|| !PageUptodate(mp->page)"

Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
2005-07-15 10:36:08 -05:00
..
2005-07-12 16:01:01 -07:00
2005-06-30 22:29:48 -07:00
2005-06-30 08:45:12 -07:00
2005-07-14 09:00:25 -07:00
2005-06-25 16:25:04 -07:00
2005-06-28 21:20:31 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-07-12 20:38:38 -07:00
2005-06-30 08:45:11 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-07-07 18:23:46 -07:00
2005-07-12 16:01:02 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-06-24 00:05:19 -07:00
2005-07-12 20:38:38 -07:00
2005-07-13 11:09:31 -07:00
2005-07-12 20:38:38 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-07-12 20:38:38 -07:00
2005-07-12 20:38:38 -07:00
2005-07-12 20:38:38 -07:00
2005-05-05 16:36:47 -07:00
2005-07-12 20:38:38 -07:00