]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix nfs_direct_dirty_pages()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 May 2007 14:22:27 +0000 (10:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 24 May 2007 15:18:18 +0000 (11:18 -0400)
commit22a48f8191acfdc1ac1c5fab2c99f1a0d690b211
tree7b3b31104103208c852ad30616667aeb5256f34e
parent023434d3dabf7cdc44e90446451fe983780eff30
NFS: Fix nfs_direct_dirty_pages()

We only need to dirty the pages that were actually read in.

Also convert nfs_direct_dirty_pages() to call set_page_dirty() instead of
set_page_dirty_lock(). A call to lock_page() is unacceptable in an rpciod
callback function.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c