Whamcloud - gitweb
LU-12477 lustre: use delete_from_page_cache() for directory pages. 62/35462/3
authorNeilBrown <neilb@suse.com>
Thu, 11 Jul 2019 00:50:22 +0000 (20:50 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Jul 2019 06:22:17 +0000 (06:22 +0000)
commit43d5806ffe6d6017aea0892de78dc27e54861de1
tree504be5d7bf6f42964b1c9a44602efcabb2182f6f
parentf114d4dac6f842212e248f2ed4a50ce3249109d8
LU-12477 lustre: use delete_from_page_cache() for directory pages.

lustre sometimes uses the internal function truncate_complete_page()
to remove a page of a directory.
Much of what this function does, does not apply to directory pages
as there is no invalidatepage function, and at these times, the
page is not dirty.
The only useful part of the function is delete_from_page_cache(),
so just call that directly.

Linux-commit: d17fa2f3a0b9b40be48e0c3cc88eb3b3cea1b701

Change-Id: I54795e71e107c50f662bd2015c6f621bfe436e0a
Acked-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/35462
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/dir.c
lustre/mdc/mdc_request.c