diff options
author | Hyeongseok Kim <hyeongseok@gmail.com> | 2021-03-15 13:12:55 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-04-27 20:45:06 +0900 |
commit | 23befe490ba885bdf757d40b2489134315fef690 (patch) | |
tree | a52e5f7a88096c8f57e8323da2c5de11c2c6c6e2 /fs/exfat/inode.c | |
parent | 654762df2ec7d61b05acc788afbffaba52d658fe (diff) | |
download | linux-23befe490ba885bdf757d40b2489134315fef690.tar.bz2 |
exfat: improve write performance when dirsync enabled
Degradation of write speed caused by frequent disk access for cluster
bitmap update on every cluster allocation could be improved by
selective syncing bitmap buffer. Change to flush bitmap buffer only
for the directory related operations.
Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs/exfat/inode.c')
-rw-r--r-- | fs/exfat/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index 730373e0965a..1803ef3220fd 100644 --- a/fs/exfat/inode.c +++ b/fs/exfat/inode.c @@ -179,7 +179,8 @@ static int exfat_map_cluster(struct inode *inode, unsigned int clu_offset, return -EIO; } - ret = exfat_alloc_cluster(inode, num_to_be_allocated, &new_clu); + ret = exfat_alloc_cluster(inode, num_to_be_allocated, &new_clu, + inode_needs_sync(inode)); if (ret) return ret; |