Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux...
[linux-2.6.git] / drivers / usb / gadget / file_storage.c
index fca3407e48f23189dde135ef1a67cdefce0e71e1..29dfb0277ffbf5c9d6adcd80d2b68b274401c17d 100644 (file)
@@ -1274,7 +1274,7 @@ static int do_write(struct fsg_dev *fsg)
                }
                if (fsg->cmnd[1] & 0x08) {      // FUA
                        spin_lock(&curlun->filp->f_lock);
-                       curlun->filp->f_flags |= O_SYNC;
+                       curlun->filp->f_flags |= O_DSYNC;
                        spin_unlock(&curlun->filp->f_lock);
                }
        }