diff options
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index f884cb51622a..5a68b92a0f9a 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "cifsproto.h" | 29 | #include "cifsproto.h" |
30 | #include "cifs_debug.h" | 30 | #include "cifs_debug.h" |
31 | #include "cifs_fs_sb.h" | 31 | #include "cifs_fs_sb.h" |
32 | #include "fscache.h" | ||
32 | 33 | ||
33 | 34 | ||
34 | static void cifs_set_ops(struct inode *inode, const bool is_dfs_referral) | 35 | static void cifs_set_ops(struct inode *inode, const bool is_dfs_referral) |
@@ -776,6 +777,8 @@ retry_iget5_locked: | |||
776 | inode->i_flags |= S_NOATIME | S_NOCMTIME; | 777 | inode->i_flags |= S_NOATIME | S_NOCMTIME; |
777 | if (inode->i_state & I_NEW) { | 778 | if (inode->i_state & I_NEW) { |
778 | inode->i_ino = hash; | 779 | inode->i_ino = hash; |
780 | /* initialize per-inode cache cookie pointer */ | ||
781 | CIFS_I(inode)->fscache = NULL; | ||
779 | unlock_new_inode(inode); | 782 | unlock_new_inode(inode); |
780 | } | 783 | } |
781 | } | 784 | } |
@@ -1571,6 +1574,7 @@ cifs_invalidate_mapping(struct inode *inode) | |||
1571 | cifs_i->write_behind_rc = rc; | 1574 | cifs_i->write_behind_rc = rc; |
1572 | } | 1575 | } |
1573 | invalidate_remote_inode(inode); | 1576 | invalidate_remote_inode(inode); |
1577 | cifs_fscache_reset_inode_cookie(inode); | ||
1574 | } | 1578 | } |
1575 | 1579 | ||
1576 | int cifs_revalidate_file(struct file *filp) | 1580 | int cifs_revalidate_file(struct file *filp) |