mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
fs: vfat: reduce the worst case latencies
When a block partition is mounted with FAT file system and MS_DIRSYNC option is used, some file system operations like create, rename shall sleep in caller's context until all the metadata have been committed to the non-volatile memory. Since this operation is blocking call for user context, the WRITE_SYNC option must be used instead of WRITE (async operation) which incur inherent latencies while flushing the meta-data corresponding to directory entries Change-Id: I41c514889873a39d564271db0a421e6c66e5ae33 Signed-off-by: xiaogang <xiaogang@codeaurora.org>
This commit is contained in:
parent
b952b8b91f
commit
6cfea18fb4
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs)
|
|||
int i, err = 0;
|
||||
|
||||
for (i = 0; i < nr_bhs; i++)
|
||||
write_dirty_buffer(bhs[i], WRITE);
|
||||
write_dirty_buffer(bhs[i], WRITE_SYNC);
|
||||
|
||||
for (i = 0; i < nr_bhs; i++) {
|
||||
wait_on_buffer(bhs[i]);
|
||||
|
|
Loading…
Reference in a new issue