projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dab4c82
)
HPFS: Implement fsync for hpfs
author
Mikulas Patocka
<mikulas@artax.karlin.mff.cuni.cz>
Sun, 8 May 2011 18:44:19 +0000
(20:44 +0200)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 9 May 2011 16:04:24 +0000
(09:04 -0700)
Implement fsync for hpfs.
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hpfs/file.c
patch
|
blob
|
history
diff --git
a/fs/hpfs/file.c
b/fs/hpfs/file.c
index 09a642f853e1c6ce4e7ede587ebb8fb5046eddad..89c500ee521382c2250c0a818a3c18c773025ac8 100644
(file)
--- a/
fs/hpfs/file.c
+++ b/
fs/hpfs/file.c
@@
-20,8
+20,8
@@
static int hpfs_file_release(struct inode *inode, struct file *file)
int hpfs_file_fsync(struct file *file, int datasync)
{
- /*return file_fsync(file, datasync);*/
- return
0; /* Don't fsync :-) */
+ struct inode *inode = file->f_mapping->host;
+ return
sync_blockdev(inode->i_sb->s_bdev);
}
/*