diff options
Diffstat (limited to 'fs/coda')
-rw-r--r-- | fs/coda/dir.c | 2 | ||||
-rw-r--r-- | fs/coda/file.c | 6 | ||||
-rw-r--r-- | fs/coda/psdev.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 0faf29663..e949f7986 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c @@ -55,7 +55,7 @@ static void coda_prepare_fakefile(struct inode *coda_inode, struct dentry *open_dentry); static int coda_venus_readdir(struct file *filp, void *dirent, filldir_t filldir); -int coda_fsync(struct file *, struct dentry *dentry, int); +int coda_fsync(struct file *, struct dentry *dentry); int coda_hasmknod = 0; diff --git a/fs/coda/file.c b/fs/coda/file.c index 704b4d00b..9aecd716a 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c @@ -40,7 +40,7 @@ coda_file_write(struct file *file,const char *buf,size_t count,loff_t *ppos) } /* exported from this file (used for dirs) */ -int coda_fsync(struct file *coda_file, struct dentry *coda_dentry, int datasync) +int coda_fsync(struct file *coda_file, struct dentry *coda_dentry) { struct inode *inode = coda_dentry->d_inode; struct dentry cont_dentry; @@ -60,10 +60,10 @@ int coda_fsync(struct file *coda_file, struct dentry *coda_dentry, int datasync) cont_dentry.d_inode = (struct inode *)inode->i_mapping->host; down(&cont_dentry.d_inode->i_sem); - result = file_fsync(NULL, &cont_dentry, datasync); + result = file_fsync(NULL, &cont_dentry); up(&cont_dentry.d_inode->i_sem); - if ( !datasync && result == 0 ) { + if ( result == 0 ) { lock_kernel(); result = venus_fsync(inode->i_sb, coda_i2f(inode)); unlock_kernel(); diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index 582ea7000..45025e871 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c @@ -417,7 +417,7 @@ int init_coda_psdev(void) devfs_handle = devfs_mk_dir (NULL, "coda", 4, NULL); devfs_register_series (devfs_handle, "%u", MAX_CODADEVS, DEVFS_FL_NONE, CODA_PSDEV_MAJOR, 0, - S_IFCHR | S_IRUSR | S_IWUSR, 0, 0, + S_IFCHR | S_IRUSR | S_IWUSR, &coda_psdev_fops, NULL); memset(&coda_upc_comm, 0, sizeof(coda_upc_comm)); memset(&coda_super_info, 0, sizeof(coda_super_info)); |