]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: assume writeable exportabled filesystems have f_sync
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Oct 2012 20:04:08 +0000 (16:04 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 8 Nov 2012 00:31:33 +0000 (19:31 -0500)
commita3fbe086500ba592ff3931f5d694e768fb482ffd
treeefe6c90695ee97eb12364ff7756821a67ccc9f7a
parent77a2d9dc95907ef429cfef33bc1cf006650e6b5d
nfsd: assume writeable exportabled filesystems have f_sync

I don't really see how you could claim to support nfsd and not support
fsync somehow.

And in practice a quick look through the exportable filesystems suggests
the only ones without an ->fsync are read-only (efs, isofs, squashfs) or
in-memory (shmem).

Also, performing a write and then returning an error if the sync fails
(as we would do here in the wgather case) seems unhelpful to clients.

Also remove an incorrect comment.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c