diff options
Diffstat (limited to 'fs/9p/cache.c')
-rw-r--r-- | fs/9p/cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/9p/cache.c b/fs/9p/cache.c index a69260f27555..103ca5e1267b 100644 --- a/fs/9p/cache.c +++ b/fs/9p/cache.c | |||
@@ -243,14 +243,14 @@ void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp) | |||
243 | if (!v9inode->fscache) | 243 | if (!v9inode->fscache) |
244 | return; | 244 | return; |
245 | 245 | ||
246 | spin_lock(&v9inode->fscache_lock); | 246 | mutex_lock(&v9inode->fscache_lock); |
247 | 247 | ||
248 | if ((filp->f_flags & O_ACCMODE) != O_RDONLY) | 248 | if ((filp->f_flags & O_ACCMODE) != O_RDONLY) |
249 | v9fs_cache_inode_flush_cookie(inode); | 249 | v9fs_cache_inode_flush_cookie(inode); |
250 | else | 250 | else |
251 | v9fs_cache_inode_get_cookie(inode); | 251 | v9fs_cache_inode_get_cookie(inode); |
252 | 252 | ||
253 | spin_unlock(&v9inode->fscache_lock); | 253 | mutex_unlock(&v9inode->fscache_lock); |
254 | } | 254 | } |
255 | 255 | ||
256 | void v9fs_cache_inode_reset_cookie(struct inode *inode) | 256 | void v9fs_cache_inode_reset_cookie(struct inode *inode) |
@@ -264,7 +264,7 @@ void v9fs_cache_inode_reset_cookie(struct inode *inode) | |||
264 | 264 | ||
265 | old = v9inode->fscache; | 265 | old = v9inode->fscache; |
266 | 266 | ||
267 | spin_lock(&v9inode->fscache_lock); | 267 | mutex_lock(&v9inode->fscache_lock); |
268 | fscache_relinquish_cookie(v9inode->fscache, 1); | 268 | fscache_relinquish_cookie(v9inode->fscache, 1); |
269 | 269 | ||
270 | v9ses = v9fs_inode2v9ses(inode); | 270 | v9ses = v9fs_inode2v9ses(inode); |
@@ -274,7 +274,7 @@ void v9fs_cache_inode_reset_cookie(struct inode *inode) | |||
274 | p9_debug(P9_DEBUG_FSC, "inode %p revalidating cookie old %p new %p\n", | 274 | p9_debug(P9_DEBUG_FSC, "inode %p revalidating cookie old %p new %p\n", |
275 | inode, old, v9inode->fscache); | 275 | inode, old, v9inode->fscache); |
276 | 276 | ||
277 | spin_unlock(&v9inode->fscache_lock); | 277 | mutex_unlock(&v9inode->fscache_lock); |
278 | } | 278 | } |
279 | 279 | ||
280 | int __v9fs_fscache_release_page(struct page *page, gfp_t gfp) | 280 | int __v9fs_fscache_release_page(struct page *page, gfp_t gfp) |