diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-07 20:56:44 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-12 03:36:11 +0200 |
commit | d5aacad548db1ff547adf35d0a77eb2a8ed4fe14 (patch) | |
tree | fbdf12dbacde76a1bb57738f1f67b87a673ddff2 /include | |
parent | Push BKL down into ->remount_fs() (diff) | |
download | linux-d5aacad548db1ff547adf35d0a77eb2a8ed4fe14.tar.xz linux-d5aacad548db1ff547adf35d0a77eb2a8ed4fe14.zip |
New helper - simple_fsync()
writes associated buffers, then does sync_inode() to write
the inode itself (and to make it clean). Depends on
->write_inode() honouring the second argument.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d883aa1fc2eb..ede84fa7da5d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2345,6 +2345,8 @@ extern void simple_release_fs(struct vfsmount **mount, int *count); extern ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, const void *from, size_t available); +extern int simple_fsync(struct file *, struct dentry *, int); + #ifdef CONFIG_MIGRATION extern int buffer_migrate_page(struct address_space *, struct page *, struct page *); |