acrn-kernel/fs/xfs/linux-2.6
OGAWA Hirofumi 28fd129827 [PATCH] Fix and add EXPORT_SYMBOL(filemap_write_and_wait)
This patch add EXPORT_SYMBOL(filemap_write_and_wait) and use it.

See mm/filemap.c:

And changes the filemap_write_and_wait() and filemap_write_and_wait_range().

Current filemap_write_and_wait() doesn't wait if filemap_fdatawrite()
returns error.  However, even if filemap_fdatawrite() returned an
error, it may have submitted the partially data pages to the device.
(e.g. in the case of -ENOSPC)

<quotation>
Andrew Morton writes,

If filemap_fdatawrite() returns an error, this might be due to some
I/O problem: dead disk, unplugged cable, etc.  Given the generally
crappy quality of the kernel's handling of such exceptions, there's a
good chance that the filemap_fdatawait() will get stuck in D state
forever.
</quotation>

So, this patch doesn't wait if filemap_fdatawrite() returns the -EIO.

Trond, could you please review the nfs part?  Especially I'm not sure,
nfs must use the "filemap_fdatawrite(inode->i_mapping) == 0", or not.

Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-08 20:13:47 -08:00
..
kmem.c [XFS] Cleanup cosmetic differences between source trees. 2005-11-03 16:14:31 +11:00
kmem.h [PATCH] mm: rename kmem_cache_s to kmem_cache 2005-11-07 07:53:24 -08:00
mrlock.h
mutex.h
sema.h
spin.h
sv.h
time.h
xfs_aops.c [XFS] Fix a 32 bit value wraparound when providing a mapping for a large 2005-11-25 16:41:57 +11:00
xfs_aops.h
xfs_buf.c [XFS] Remove no-longer-used qsort source. 2005-11-04 10:51:01 +11:00
xfs_buf.h
xfs_cred.h
xfs_export.c [XFS] Rework fid encode/decode wrt 64 bit inums interacting with NFS. 2005-11-02 15:11:45 +11:00
xfs_export.h
xfs_file.c
xfs_fs_subr.c [PATCH] Fix and add EXPORT_SYMBOL(filemap_write_and_wait) 2006-01-08 20:13:47 -08:00
xfs_fs_subr.h
xfs_globals.c
xfs_globals.h
xfs_ioctl.c
xfs_ioctl32.c
xfs_ioctl32.h
xfs_iops.c
xfs_iops.h
xfs_linux.h [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
xfs_lrw.c
xfs_lrw.h
xfs_stats.c
xfs_stats.h
xfs_super.c
xfs_super.h
xfs_sysctl.c
xfs_sysctl.h
xfs_version.h
xfs_vfs.c
xfs_vfs.h [XFS] Rework fid encode/decode wrt 64 bit inums interacting with NFS. 2005-11-02 15:11:45 +11:00
xfs_vnode.c
xfs_vnode.h