Skip to content

Make O_SYNC handling use standard syncing path

Jan Kara linux-ext4 linux-fsdevel linux-nfs linux-scsi linux-xfs lkml ocfs2-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 76 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17vfs: Introduce filemap_fdatawait_rangeinclude/linux/fs.h mm/filemap.c+22 -01 reply
2/17vfs: Export __generic_file_aio_write() and add some commentsinclude/linux/fs.h mm/filemap.c+52 -77 replies
3/17vfs: Remove syncing from generic_file_direct_write() and generic_file_buffered_write()mm/filemap.c+0 -252 replies
4/17pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolockdrivers/staging/pohmelfs/inode.c+1 -10 replies
5/17ocfs2: Use __generic_file_aio_write instead of generic_file_aio_write_nolockfs/ocfs2/file.c+12 -100 replies
6/17vfs: Remove sync_page_range_nolockinclude/linux/writeback.h mm/filemap.c+1 -321 reply
7/17vfs: Introduce new helpers for syncing after writing to O_SYNC file or IS_SYNC inodefs/splice.c fs/sync.c include/linux/fs.h +1 more+86 -408 replies
8/17ext2: Update comment about generic_osync_inodefs/ext2/inode.c+1 -10 replies
9/17ext3: Remove syncing logic from ext3_file_writefs/ext3/file.c+1 -600 replies
10/17ext4: Remove syncing logic from ext4_file_writefs/ext4/file.c+2 -510 replies
11/17fat: Opencode sync_page_range_nolock()fs/fat/file.c fs/fat/misc.c+22 -40 replies
12/17ntfs: Use new syncing helpers and update commentsfs/ntfs/file.c fs/ntfs/mft.c+10 -190 replies
13/17ocfs2: Update syncing after splicing to match generic versionfs/ocfs2/file.c+6 -212 replies
14/17xfs: Use new syncing helperfs/xfs/linux-2.6/xfs_lrw.c+1 -12 replies
15/17pohmelfs: Use new syncing helperdrivers/staging/pohmelfs/inode.c+2 -20 replies
16/17nfs: Remove reference to generic_osync_inode from a commentfs/nfs/direct.c+0 -30 replies
17/17vfs: Remove generic_osync_inode() and sync_page_range()fs/fs-writeback.c include/linux/fs.h include/linux/writeback.h +1 more+0 -960 replies

Reviews trailers per patch

2 of 17 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/17R-b
2/17R-b
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/17] Make O_SYNC handling use standard syncing path

Hi,

below comes a patch series that unifies O_SYNC handling with code doing
fsync(). After this, we have just one place forcing a single file to disk so filesystems like ext3 / ext4 don't have to force a transaction commit in ext?_file_write for O_SYNC files / IS_SYNC inodes.
The code is also cleaner this way (actually about 150 lines shorter), we
don't sync the inode several times as it happened previously etc.
The patchset touches quite some filesystems. Hopefully I've added all the
relevant people to CC for the relevant patches. I've tested via blktrace that for ext?, xfs, ocfs2 and fat, the file is indeed forced to disk as expected. Maintainers of pohmelfs and NTFS might want to check that everything works as expected for them after applying the patches.
Comments / review welcome.

Honza