2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/fs/ext4
Theodore Ts'o 14ce0cb411 ext4: wait on all pending commits in ext4_sync_fs()
In ext4_sync_fs, we only wait for a commit to finish if we started it,
but there may be one already in progress which will not be synced.

In the case of a data=ordered umount with pending long symlinks which
are delayed due to a long list of other I/O on the backing block
device, this causes the buffer associated with the long symlinks to
not be moved to the inode dirty list in the second phase of
fsync_super.  Then, before they can be dirtied again, kjournald exits,
seeing the UMOUNT flag and the dirty pages are never written to the
backing block device, causing long symlink corruption and exposing new
or previously freed block data to userspace.

To ensure all commits are synced, we flush all journal commits now
when sync_fs'ing ext4.

Signed-off-by: Arthur Jones <ajones@riverbed.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Eric Sandeen <sandeen@redhat.com>
Cc: <linux-ext4@vger.kernel.org>
2008-11-03 18:10:55 -05:00
..
acl.c
acl.h
balloc.c delay capable() check in ext4_has_free_blocks() 2008-10-28 00:08:17 -04:00
bitmap.c
dir.c ext4: Fix duplicate entries returned from getdents() system call 2008-10-25 22:37:55 -04:00
ext4_extents.h
ext4_i.h
ext4_jbd2.c
ext4_jbd2.h
ext4_sb.h ext4: Replace hackish ext4_mb_poll_new_transaction with commit callback 2008-10-16 20:00:24 -04:00
ext4.h merge ext4_claim_free_blocks & ext4_has_free_blocks 2008-10-28 00:08:12 -04:00
extents.c
file.c
fsync.c
group.h
hash.c
ialloc.c
inode.c ext4: Remove automatic enabling of the HUGE_FILE feature flag 2008-10-16 22:50:48 -04:00
ioctl.c ext4: add checks for errors from jbd2 2008-10-10 20:29:21 -04:00
Kconfig fs/Kconfig: move ext2, ext3, ext4, JBD, JBD2 out 2008-10-20 11:43:59 -07:00
Makefile
mballoc.c ext4: fix missing ext4_unlock_group in error path 2008-11-04 09:10:50 -05:00
mballoc.h ext4: Replace hackish ext4_mb_poll_new_transaction with commit callback 2008-10-16 20:00:24 -04:00
migrate.c
namei.c ext4: remove unused variable in ext4_get_parent 2008-10-23 12:03:23 -07:00
namei.h
resize.c
super.c ext4: wait on all pending commits in ext4_sync_fs() 2008-11-03 18:10:55 -05:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h