diff options
Diffstat (limited to 'fs/sync.c')
-rw-r--r-- | fs/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ long do_fsync(struct file *file, int datasync) | |||
94 | * livelocks in fsync_buffers_list(). | 94 | * livelocks in fsync_buffers_list(). |
95 | */ | 95 | */ |
96 | mutex_lock(&mapping->host->i_mutex); | 96 | mutex_lock(&mapping->host->i_mutex); |
97 | err = file->f_op->fsync(file, file->f_dentry, datasync); | 97 | err = file->f_op->fsync(file, file->f_path.dentry, datasync); |
98 | if (!ret) | 98 | if (!ret) |
99 | ret = err; | 99 | ret = err; |
100 | mutex_unlock(&mapping->host->i_mutex); | 100 | mutex_unlock(&mapping->host->i_mutex); |
@@ -223,7 +223,7 @@ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, | |||
223 | if (!file) | 223 | if (!file) |
224 | goto out; | 224 | goto out; |
225 | 225 | ||
226 | i_mode = file->f_dentry->d_inode->i_mode; | 226 | i_mode = file->f_path.dentry->d_inode->i_mode; |
227 | ret = -ESPIPE; | 227 | ret = -ESPIPE; |
228 | if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && | 228 | if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && |
229 | !S_ISLNK(i_mode)) | 229 | !S_ISLNK(i_mode)) |