diff options
| author | Patrick McHardy <kaber@trash.net> | 2011-04-13 07:32:28 -0400 |
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2011-04-13 07:32:28 -0400 |
| commit | b32e3dc7860d00124fa432dba09667e647cb9bcc (patch) | |
| tree | 2fa6e56f389431dfb84609d3d7572cad76e88e71 /fs/exofs/file.c | |
| parent | 6604271c5bc658a6067ed0c3deba4d89e0e50382 (diff) | |
| parent | 96120d86fe302c006259baee9061eea9e1b9e486 (diff) | |
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'fs/exofs/file.c')
| -rw-r--r-- | fs/exofs/file.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/exofs/file.c b/fs/exofs/file.c index b905c79b4f0a..45ca323d8363 100644 --- a/fs/exofs/file.c +++ b/fs/exofs/file.c | |||
| @@ -45,22 +45,8 @@ static int exofs_release_file(struct inode *inode, struct file *filp) | |||
| 45 | static int exofs_file_fsync(struct file *filp, int datasync) | 45 | static int exofs_file_fsync(struct file *filp, int datasync) |
| 46 | { | 46 | { |
| 47 | int ret; | 47 | int ret; |
| 48 | struct inode *inode = filp->f_mapping->host; | ||
| 49 | struct super_block *sb; | ||
| 50 | |||
| 51 | if (!(inode->i_state & I_DIRTY)) | ||
| 52 | return 0; | ||
| 53 | if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) | ||
| 54 | return 0; | ||
| 55 | |||
| 56 | ret = sync_inode_metadata(inode, 1); | ||
| 57 | |||
| 58 | /* This is a good place to write the sb */ | ||
| 59 | /* TODO: Sechedule an sb-sync on create */ | ||
| 60 | sb = inode->i_sb; | ||
| 61 | if (sb->s_dirt) | ||
| 62 | exofs_sync_fs(sb, 1); | ||
| 63 | 48 | ||
| 49 | ret = sync_inode_metadata(filp->f_mapping->host, 1); | ||
| 64 | return ret; | 50 | return ret; |
| 65 | } | 51 | } |
| 66 | 52 | ||
