Skip to content

RFC Clean up ext4_file_write()

Theodore Ts'o linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ext4: inline generic_file_aio_write() into ext4_file_write()fs/ext4/file.c+17 -41 reply
2/5ext4: move ext4_file_dio_write() into ext4_file_write()fs/ext4/file.c+65 -741 reply
3/5ext4: drop aio_mutex after grabbing i_mutex in ext4_file_write()fs/ext4/file.c+9 -81 reply
4/5ext4: factor out common code in ext4_file_write()fs/ext4/file.c+13 -241 reply
5/5ext4: add locking for O_APPEND writesfs/ext4/file.c+29 -172 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

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

Read the v1 thread

Cover letter [RFC PATCH 0/5] Clean up ext4_file_write()

This patch series makes ext4_file_write() a bit easier to understand by eliminating ext4_file_dio_write() and merging common code together.

In addition, fix an O_APPEND locking issue which Al Viro pointed out.

Theodore Ts'o (5):
ext4: inline generic_file_aio_write() into ext4_file_write()
ext4: move ext4_file_dio_write() into ext4_file_write()
ext4: drop aio_mutex after grabbing i_mutex in ext4_file_write()
ext4: factor out common code in ext4_file_write()
ext4: add locking for O_APPEND writes

 fs/ext4/file.c | 153 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 78 insertions(+), 75 deletions(-)
Signature · 1 line
1.9.0