diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/9p/cache.c | 2 | ||||
| -rw-r--r-- | fs/cachefiles/rdwr.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/9p/cache.c b/fs/9p/cache.c index bcc5357a9069..e777961939f3 100644 --- a/fs/9p/cache.c +++ b/fs/9p/cache.c | |||
| @@ -343,7 +343,7 @@ int __v9fs_fscache_release_page(struct page *page, gfp_t gfp) | |||
| 343 | 343 | ||
| 344 | BUG_ON(!vcookie->fscache); | 344 | BUG_ON(!vcookie->fscache); |
| 345 | 345 | ||
| 346 | return fscache_maybe_release_page(vnode->cache, page, gfp); | 346 | return fscache_maybe_release_page(vcookie->fscache, page, gfp); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | void __v9fs_fscache_invalidate_page(struct page *page) | 349 | void __v9fs_fscache_invalidate_page(struct page *page) |
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index 1d8332563863..a6c8c6fe8df9 100644 --- a/fs/cachefiles/rdwr.c +++ b/fs/cachefiles/rdwr.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | #include <linux/mount.h> | 12 | #include <linux/mount.h> |
| 13 | #include <linux/file.h> | 13 | #include <linux/file.h> |
| 14 | #include <linux/ima.h> | ||
| 14 | #include "internal.h" | 15 | #include "internal.h" |
| 15 | 16 | ||
| 16 | /* | 17 | /* |
| @@ -922,6 +923,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page) | |||
| 922 | if (IS_ERR(file)) { | 923 | if (IS_ERR(file)) { |
| 923 | ret = PTR_ERR(file); | 924 | ret = PTR_ERR(file); |
| 924 | } else { | 925 | } else { |
| 926 | ima_counts_get(file); | ||
| 925 | ret = -EIO; | 927 | ret = -EIO; |
| 926 | if (file->f_op->write) { | 928 | if (file->f_op->write) { |
| 927 | pos = (loff_t) page->index << PAGE_SHIFT; | 929 | pos = (loff_t) page->index << PAGE_SHIFT; |
