summaryrefslogtreecommitdiff
path: root/fs/exfat/exfat_fs.h
diff options
context:
space:
mode:
authorSungjong Seo <sj1557.seo@samsung.com>2020-06-18 14:43:26 +0300
committerNamjae Jeon <namjae.jeon@samsung.com>2020-06-29 11:11:18 +0300
commit5267456e953fd8c5abd8e278b1cc6a9f9027ac0a (patch)
tree65250c98c0c38be91b66c7a22bc7c3cd1e136fc3 /fs/exfat/exfat_fs.h
parent3bcfb701099acf96b0e883bf5544f96af473aa1d (diff)
downloadlinux-5267456e953fd8c5abd8e278b1cc6a9f9027ac0a.tar.xz
exfat: flush dirty metadata in fsync
generic_file_fsync() exfat used could not guarantee the consistency of a file because it has flushed not dirty metadata but only dirty data pages for a file. Instead of that, use exfat_file_fsync() for files and directories so that it guarantees to commit both the metadata and data pages for a file. Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs/exfat/exfat_fs.h')
-rw-r--r--fs/exfat/exfat_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h
index 595f3117f492..7579cd3bbadb 100644
--- a/fs/exfat/exfat_fs.h
+++ b/fs/exfat/exfat_fs.h
@@ -420,6 +420,7 @@ void exfat_truncate(struct inode *inode, loff_t size);
int exfat_setattr(struct dentry *dentry, struct iattr *attr);
int exfat_getattr(const struct path *path, struct kstat *stat,
unsigned int request_mask, unsigned int query_flags);
+int exfat_file_fsync(struct file *file, loff_t start, loff_t end, int datasync);
/* namei.c */
extern const struct dentry_operations exfat_dentry_ops;