]> 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>
Wed, 11 Sep 2013 22:24:32 +0000 (15:24 -0700)
commit7a40c83337cb4ff07646ea7c2cc0d6d98be94bff
tree2e7bb8f487b9a1e407569cc2455890971ad709be
parent0b591f452e62032fe9f70610b1a671d620e5d724
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)

Change-Id: I4fa0f2449eabf4dc82e5450c0b378b9ebe49d848
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>
src/afs/LINUX/osi_vnodeops.c