Whamcloud - gitweb
LU-13373 llite: fix to verify write in ll_file_get_iov_count() 88/37988/3
authorWang Shilong <wshilong@ddn.com>
Thu, 19 Mar 2020 14:56:07 +0000 (22:56 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Apr 2020 16:49:29 +0000 (16:49 +0000)
commitab6ddccf78d37afe4f941b6a2074dca25a65cfe7
tree8f0be5265a99c077a46fc5fd8c3c10f31fd872de
parent9a085781b34d3dbe46c61db21c2681a0d31136de
LU-13373 llite: fix to verify write in ll_file_get_iov_count()

should pass VERIFY_WRITE to access_ok() if this is writing
rather than VERIFY_READ.

Change-Id: I8c6fd6696437e1d2a964728b456ea1df05daa183
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37988
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/file.c