]> git.neil.brown.name Git - history.git/commit
[PATCH] i_sem-less generic_file_write for O_DIRECT & XFS
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2002 01:06:55 +0000 (18:06 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 13 Aug 2002 01:06:55 +0000 (18:06 -0700)
commit8c0b388ab19c6a0c1a726ec00c445038d4da7fdc
tree5f426a93200593d9eeed8a65044fafb290bc2d7a
parent630986cd7db778443b1a8dd4d1f0afcab5870aa0
[PATCH] i_sem-less generic_file_write for O_DIRECT & XFS

There are a number of places where generic_file_write could be used if
it didn't take i_sem by itself or where it doesn't need it:

(1) XFS needs to do some preparation in it's write file operation
(most notably taking it's own per-inode locks), after taking
i_sem, but before calling the guts of generic_file_write.
(2) blockdevices are happy with parralel get_block() operations,
and there is nothing i_sem could protect.

This patch introduces a generic_file_write_nolock and makes the good old
generic_file_write a wrapper around.  The block device code is switched
over to it.
fs/block_dev.c
include/linux/fs.h
kernel/ksyms.c
mm/filemap.c