linux/drivers/usb/gadget
Christoph Hellwig 4c728ef583 add a vfs_fsync helper
Fsync currently has a fdatawrite/fdatawait pair around the method call,
and a mutex_lock/unlock of the inode mutex.  All callers of fsync have
to duplicate this, but we have a few and most of them don't quite get
it right.  This patch adds a new vfs_fsync that takes care of this.
It's a little more complicated as usual as ->fsync might get a NULL file
pointer and just a dentry from nfsd, but otherwise gets afile and we
want to take the mapping and file operations from it when it is there.

Notes on the fsync callers:

 - ecryptfs wasn't calling filemap_fdatawrite / filemap_fdatawait on the
   	lower file
 - coda wasn't calling filemap_fdatawrite / filemap_fdatawait on the host
	file, and returning 0 when ->fsync was missing
 - shm wasn't calling either filemap_fdatawrite / filemap_fdatawait nor
   taking i_mutex.  Now given that shared memory doesn't have disk
   backing not doing anything in fsync seems fine and I left it out of
   the vfs_fsync conversion for now, but in that case we might just
   not pass it through to the lower file at all but just call the no-op
   simple_sync_file directly.

[and now actually export vfs_fsync]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2009-01-05 11:54:28 -05:00
..
Kconfig USB: omap_udc: sync with OMAP tree 2008-10-17 14:41:00 -07:00
Makefile
amd5536udc.c
amd5536udc.h
at91_udc.c
at91_udc.h
atmel_usba_udc.c
atmel_usba_udc.h
cdc2.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
composite.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
config.c usb/gadget: fix kernel-doc warning 2008-10-22 10:05:28 -07:00
dummy_hcd.c
epautoconf.c
ether.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
f_acm.c USB: gadget: cdc-acm deadlock fix 2008-11-13 14:45:06 -08:00
f_ecm.c
f_loopback.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
f_obex.c
f_phonet.c Phonet: USB CDC Phonet function for gadget framework 2008-12-17 15:49:09 -08:00
f_rndis.c USB: gadget: fix rndis working at high speed 2008-12-17 10:49:12 -08:00
f_serial.c
f_sourcesink.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
f_subset.c
file_storage.c add a vfs_fsync helper 2009-01-05 11:54:28 -05:00
fsl_qe_udc.c USB: fsl_qe_udc: Report disconnect before unbinding 2008-11-30 22:24:02 -08:00
fsl_qe_udc.h usb/fsl_qe_udc: fix response to get status request 2008-10-17 14:41:08 -07:00
fsl_usb2_udc.c USB: fsl_usb2_udc: Report disconnect before unbinding 2008-11-30 22:24:03 -08:00
fsl_usb2_udc.h fsl_usb2_udc: Fix some sparse warnings and remove redundant code. 2008-10-17 14:41:05 -07:00
g_zero.h
gadget_chips.h
gmidi.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
goku_udc.c
goku_udc.h
inode.c zero i_uid/i_gid on inode allocation 2009-01-05 11:54:28 -05:00
lh7a40x_udc.c
lh7a40x_udc.h
m66592-udc.c usb: Fix up sh_mobile usbf clock framework warnings. 2008-12-22 18:42:52 +09:00
m66592-udc.h sh: sh_mobile usbf clock framework support 2008-12-22 18:42:51 +09:00
ndis.h
net2280.c
net2280.h
omap_udc.c USB: omap_udc: sync with OMAP tree 2008-10-17 14:41:00 -07:00
omap_udc.h
printer.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
pxa25x_udc.c Merge branch 'highmem' into devel 2008-11-28 15:39:02 +00:00
pxa25x_udc.h
pxa27x_udc.c [ARM] pxa: don't pass a consumer clock name for devices with unique clocks 2008-11-27 12:38:23 +00:00
pxa27x_udc.h
rndis.c
rndis.h
s3c2410_udc.c [ARM] S3C24XX: Movev udc headers to arch/arm/plat-s3c24xx/include/plat 2008-10-30 10:17:15 +00:00
s3c2410_udc.h
serial.c usb gadget: USB_GADGET_VBUS_DRAW Kconfig option 2008-10-17 14:40:58 -07:00
u_ether.c netdev: expose ethernet address primitives 2008-11-19 22:42:31 -08:00
u_ether.h
u_phonet.h Phonet: USB CDC Phonet function for gadget framework 2008-12-17 15:49:09 -08:00
u_serial.c
u_serial.h
usbstring.c
zero.c