]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: Fix tmpfs cache support
authorMarc Dionne <marc.dionne@your-file-system.com>
Wed, 22 May 2013 13:26:57 +0000 (09:26 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 20 Dec 2013 15:30:31 +0000 (07:30 -0800)
commit823d182a5bba7054849ce767db46acbb01e3499a
tree4586fed8f160572131ca8ae2869c0429fa12aa82
parent512ef081c1f1c2e31e7233e4b79338ae27f787b6
Linux: Fix tmpfs cache support

As of kernel 3.1, tmpfs no longer has a readpage() operation in its
address space operations.  Some of the cache manager code relies on
this, causing an oops if tmpfs is used as backing store for the
cache.

As a minimal fix, detect that there is no readpage() and disable
the optimizations that depend on it.

Reviewed-on: http://gerrit.openafs.org/9949
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 3767cf8bf420bd59c3426a4287259b1e97178e96)

Reviewed-on: http://gerrit.openafs.org/9950
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
(cherry picked from commit 7a40c83337cb4ff07646ea7c2cc0d6d98be94bff)

Change-Id: I063428ba5a177b57eccf883c2019dbc670a6c080
Reviewed-on: http://gerrit.openafs.org/10612
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_vnodeops.c