1
linux/fs/jfs
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
..
acl.c [PATCH] remove <linux/xattr_acl.h> 2005-06-23 09:45:33 -07:00
endian24.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
inode.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_acl.h [PATCH] remove <linux/xattr_acl.h> 2005-06-23 09:45:33 -07:00
jfs_btree.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_debug.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_debug.h JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_dinode.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_dmap.c JFS: Remove assert statement in dbJoin & return -EIO instead 2005-07-15 09:43:36 -05:00
jfs_dmap.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_dtree.c JFS: Code cleanup - getting rid of never-used debug code 2005-06-27 15:35:37 -05:00
jfs_dtree.h JFS: Code cleanup - getting rid of never-used debug code 2005-06-27 15:35:37 -05:00
jfs_extent.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_extent.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_filsys.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_imap.c JFS: Code cleanup - getting rid of never-used debug code 2005-06-27 15:35:37 -05:00
jfs_imap.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_incore.h [PATCH] JFS: Support page sizes greater than 4K 2005-05-02 22:23:53 -07:00
jfs_inode.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_inode.h JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_lock.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_logmgr.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
jfs_logmgr.h JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_metapage.c JFS: fsync wrong behavior when I/O failure occurs 2005-07-15 10:36:08 -05:00
jfs_metapage.h JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_mount.c [PATCH] JFS: Support page sizes greater than 4K 2005-05-02 22:23:53 -07:00
jfs_superblock.h JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_txnmgr.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
jfs_txnmgr.h JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
jfs_types.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_umount.c [PATCH] JFS: Support page sizes greater than 4K 2005-05-02 22:23:53 -07:00
jfs_unicode.c JFS: performance patch 2005-06-23 16:57:56 -05:00
jfs_unicode.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_uniupr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_xattr.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jfs_xtree.c JFS: Code cleanup - getting rid of never-used debug code 2005-06-27 15:35:37 -05:00
jfs_xtree.h JFS: Code cleanup - getting rid of never-used debug code 2005-06-27 15:35:37 -05:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
namei.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
resize.c [PATCH] JFS: Support page sizes greater than 4K 2005-05-02 22:23:53 -07:00
super.c [PATCH] remove <linux/xattr_acl.h> 2005-06-23 09:45:33 -07:00
symlink.c JFS: fix sparse warnings by moving extern declarations to headers 2005-05-04 15:29:35 -05:00
xattr.c JFS: Need to be root to create files with security context 2005-07-13 09:15:18 -05:00