Whamcloud - gitweb
LU-1442 llite: cleanup if a page failed to add into cache
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Mon, 23 Jul 2012 14:09:51 +0000 (22:09 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 28 Jul 2012 05:01:42 +0000 (01:01 -0400)
commit9053bd5f4b4a3b822bb38125f6c670174903c436
tree3e1ad6748b7a36d31ada8531c83111c118ab7c34
parentf5f6890891a9c99d8ef80366fcfec58de4c111a5
LU-1442 llite: cleanup if a page failed to add into cache

In lustre, we assume that a dirty page must be queued in osc cache
for writing. However, in vvp_io_commit_write(), if a page failed to
add into cache, page dirty flag isn't cleared this will cause the
page will never be added into cache again.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I1c132c6f1d4f5845682e51850eb895b292fc5f0d
Reviewed-on: http://review.whamcloud.com/3447
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/llite/vvp_io.c