diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-03 21:58:56 +0300 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-03 21:58:56 +0300 |
| commit | 50d0f78f5c736e974188d72bf9317971e37e69b0 (patch) | |
| tree | 1f830d8b20238a888201bdb9cf4c6b4f3790e26e /include | |
| parent | b4df268dd4031fd2f8729e7650bc516a0a5f315b (diff) | |
| parent | afae457d874860a7e299d334f59eede5f3ad4b47 (diff) | |
| download | linux-50d0f78f5c736e974188d72bf9317971e37e69b0.tar.xz | |
Merge branch 'afs-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
Pull afs/fscache fixes from David Howells:
- Fix the default return of fscache_maybe_release_page() when a cache
isn't in use - it prevents a filesystem from releasing pages. This
can cause a system to OOM.
- Fix a potential uninitialised variable in AFS.
- Fix AFS unlink's handling of the nlink count. It needs to use the
nlink manipulation functions so that inode structs of deleted inodes
actually get scheduled for destruction.
- Fix error handling in afs_write_end() so that the page gets unlocked
and put if we can't fill the unwritten portion.
* 'afs-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
afs: Fix missing error handling in afs_write_end()
afs: Fix unlink
afs: Potential uninitialized variable in afs_extract_data()
fscache: Fix the default for fscache_maybe_release_page()
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fscache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fscache.h b/include/linux/fscache.h index f4ff47d4a893..fe0c349684fa 100644 --- a/include/linux/fscache.h +++ b/include/linux/fscache.h @@ -755,7 +755,7 @@ bool fscache_maybe_release_page(struct fscache_cookie *cookie, { if (fscache_cookie_valid(cookie) && PageFsCache(page)) return __fscache_maybe_release_page(cookie, page, gfp); - return false; + return true; } /** |
