diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-02-12 07:44:18 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-03-09 15:22:53 -0500 |
commit | abab095d1fd25986b910d3c46289d8fa3582cdc5 (patch) | |
tree | 2b70291e5159f9a8332cbeb17b21999962eadad0 /fs/cifs/cifsfs.c | |
parent | c8634fd3115497ac311f57be9c12f993437745cf (diff) |
cifs: add cifs_revalidate_file
...to allow updating inode attributes on an existing inode by
filehandle. Change mmap and llseek codepaths to use that
instead of cifs_revalidate_dentry since they have a filehandle
readily available.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index cf85a4165b01..5183bc2a1916 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -639,7 +639,7 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) | |||
639 | setting the revalidate time to zero */ | 639 | setting the revalidate time to zero */ |
640 | CIFS_I(file->f_path.dentry->d_inode)->time = 0; | 640 | CIFS_I(file->f_path.dentry->d_inode)->time = 0; |
641 | 641 | ||
642 | retval = cifs_revalidate_dentry(file->f_path.dentry); | 642 | retval = cifs_revalidate_file(file); |
643 | if (retval < 0) | 643 | if (retval < 0) |
644 | return (loff_t)retval; | 644 | return (loff_t)retval; |
645 | } | 645 | } |