projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers
[firefly-linux-kernel-4.4.55.git]
/
fs
/
ncpfs
/
file.c
diff --git
a/fs/ncpfs/file.c
b/fs/ncpfs/file.c
index 0ed65e0c3dfe29bddae78c9dcf171968c6e998dc..64a326418aa272dbda0211e892ddb32b7217eb81 100644
(file)
--- a/
fs/ncpfs/file.c
+++ b/
fs/ncpfs/file.c
@@
-20,9
+20,9
@@
#include "ncp_fs.h"
#include "ncp_fs.h"
-static int ncp_fsync(struct file *file, int datasync)
+static int ncp_fsync(struct file *file,
loff_t start, loff_t end,
int datasync)
{
{
- return
0
;
+ return
filemap_write_and_wait_range(file->f_mapping, start, end)
;
}
/*
}
/*