diff options
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 71bc87a37fc1..10c90294cd18 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -498,7 +498,7 @@ cifs_get_sb(struct file_system_type *fs_type, | |||
498 | static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov, | 498 | static ssize_t cifs_file_aio_write(struct kiocb *iocb, const struct iovec *iov, |
499 | unsigned long nr_segs, loff_t pos) | 499 | unsigned long nr_segs, loff_t pos) |
500 | { | 500 | { |
501 | struct inode *inode = iocb->ki_filp->f_dentry->d_inode; | 501 | struct inode *inode = iocb->ki_filp->f_path.dentry->d_inode; |
502 | ssize_t written; | 502 | ssize_t written; |
503 | 503 | ||
504 | written = generic_file_aio_write(iocb, iov, nr_segs, pos); | 504 | written = generic_file_aio_write(iocb, iov, nr_segs, pos); |
@@ -511,7 +511,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) | |||
511 | { | 511 | { |
512 | /* origin == SEEK_END => we must revalidate the cached file length */ | 512 | /* origin == SEEK_END => we must revalidate the cached file length */ |
513 | if (origin == SEEK_END) { | 513 | if (origin == SEEK_END) { |
514 | int retval = cifs_revalidate(file->f_dentry); | 514 | int retval = cifs_revalidate(file->f_path.dentry); |
515 | if (retval < 0) | 515 | if (retval < 0) |
516 | return (loff_t)retval; | 516 | return (loff_t)retval; |
517 | } | 517 | } |