ceph: mark user pages dirty on direct-io reads
authorHenry C Chang <henry_c_chang@tcloudcomputing.com>
Thu, 16 Dec 2010 04:45:41 +0000 (20:45 -0800)
committerSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 17:54:40 +0000 (09:54 -0800)
commitb6aa5901c7a2bd90d0b6b9866300d2648b2568f3
tree1161ed9dbacb7ace73c5d48fc9acd1db0d7815d5
parent92cf765237e2787eb168096305c448caf25ac7f8
ceph: mark user pages dirty on direct-io reads

For read operation, we have to set the argument _write_ of get_user_pages
to 1 since we will write data to pages. Also, we need to SetPageDirty before
releasing these pages.

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c
include/linux/ceph/libceph.h
net/ceph/pagevec.c