]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: don't use truncate_pagecache() to invalidate read cache
authorYan, Zheng <zyan@redhat.com>
Wed, 18 May 2016 12:58:26 +0000 (20:58 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 23:15:42 +0000 (01:15 +0200)
commitd8491ae5c6216d6c2b88133bf8cc75152de5417a
treebf7ddd4b76b0b20b45e905c6854d1b74551c06f6
parentc6e53cab9ba52c84346186a0cfeb04a5d1babcc0
ceph: don't use truncate_pagecache() to invalidate read cache

truncate_pagecache() drops dirty pages, it's dangerous to use it
to invalidate read cache. Besides, we shouldn't start invalidating
read cache while there are buffer writers. Because buffer writers
may add dirty pages later.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c
fs/ceph/inode.c