[PATCH 05/14] staging: lustre: llite: return from ll_adjust_lum() if lump is NULL

2017-08-14 Thread James Simmons
d-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: Niu Yawei <yawei@intel.com> Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/

[PATCH 05/14] staging: lustre: llite: return from ll_adjust_lum() if lump is NULL

2017-08-14 Thread James Simmons
-by: James Simmons Reviewed-by: Andreas Dilger Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/llite/xattr.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/xattr.c b/drivers/staging/lustre/lustre/llite/xattr.c index

[PATCH 06/14] staging: lustre: llite: eat -EEXIST on setting trunsted.lov

2017-08-14 Thread James Simmons
l.com> Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lustre/llite/xattr.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-)

[PATCH 06/14] staging: lustre: llite: eat -EEXIST on setting trunsted.lov

2017-08-14 Thread James Simmons
these attributes to avoid problems. Signed-off-by: Bobi Jam Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9484 Reviewed-on: https://review.whamcloud.com/27126 Reviewed-by: Dmitry Eremin Reviewed-by: Niu Yawei Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Signed-off-by: James

[PATCH v2 01/14] staging: lustre: llite: Remove filtering of seclabel xattr

2017-08-14 Thread James Simmons
hamcloud.com/27292 Reviewed-by: John L. Hammond <john.hamm...@intel.com> Reviewed-by: Sebastien Buisson <sbuis...@ddn.com> Reviewed-by: Oleg Drokin <oleg.dro...@intel.com> Signed-off-by: James Simmons <jsimm...@infradead.org> --- Changelog: v1) Initial submit with wr

[PATCH v2 01/14] staging: lustre: llite: Remove filtering of seclabel xattr

2017-08-14 Thread James Simmons
Buisson Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- Changelog: v1) Initial submit with wrong patch attached. v2) Proper patch this time. drivers/staging/lustre/lustre/llite/xattr.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite

[PATCH 07/14] staging: lustre: llite: fix sparse variable length array warning

2017-08-14 Thread James Simmons
Currently sparse reports "warning: Variable length array is used." The solution is use kasprintf to allocate full xattr name. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.co

[PATCH 07/14] staging: lustre: llite: fix sparse variable length array warning

2017-08-14 Thread James Simmons
Currently sparse reports "warning: Variable length array is used." The solution is use kasprintf to allocate full xattr name. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin

[PATCH 09/14] staging: lustre: llite: record in stats attempted removal of lma/link xattr

2017-08-14 Thread James Simmons
Keep track of attempted deletions as well as changing of the lma/link xattrs. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com&

[PATCH 09/14] staging: lustre: llite: record in stats attempted removal of lma/link xattr

2017-08-14 Thread James Simmons
Keep track of attempted deletions as well as changing of the lma/link xattrs. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin Reviewed-by: Bob Glossman Reviewed-by: Sebastien

[PATCH 10/14] staging: lustre: llite: cleanup posix acl xattr code

2017-08-14 Thread James Simmons
. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: Bob Glossman <bob.gloss...@intel.com> Reviewed-by: Sebast

[PATCH 10/14] staging: lustre: llite: cleanup posix acl xattr code

2017-08-14 Thread James Simmons
. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin Reviewed-by: Bob Glossman Reviewed-by: Sebastien Buisson Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- drivers/staging

[PATCH 11/14] staging: lustre: llite: use proper types in the xattr code

2017-08-14 Thread James Simmons
Convert __uXX types to uXX types since this is kernel code. The function ll_lov_user_md_size() returns ssize_t so change lum_size from int to ssize_t. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on:

[PATCH 11/14] staging: lustre: llite: use proper types in the xattr code

2017-08-14 Thread James Simmons
Convert __uXX types to uXX types since this is kernel code. The function ll_lov_user_md_size() returns ssize_t so change lum_size from int to ssize_t. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed

[PATCH 13/14] staging: lustre: llite: style changes in xattr.c

2017-08-14 Thread James Simmons
Small style changes to match more the kernel code standard and it make it more readable. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin <dmitry.ere...@

[PATCH 13/14] staging: lustre: llite: style changes in xattr.c

2017-08-14 Thread James Simmons
Small style changes to match more the kernel code standard and it make it more readable. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed-by: Dmitry Eremin Reviewed-by: Bob Glossman Reviewed

[PATCH 08/14] staging: lustre: llite: fix invalid size test in ll_setstripe_ea()

2017-08-14 Thread James Simmons
The size check at the start of ll_setstripe_ea() is only valid for a directory. Move that check to the section of code handling the S_ISDIR case. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamclo

[PATCH 08/14] staging: lustre: llite: fix invalid size test in ll_setstripe_ea()

2017-08-14 Thread James Simmons
The size check at the start of ll_setstripe_ea() is only valid for a directory. Move that check to the section of code handling the S_ISDIR case. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com/27240 Reviewed

[PATCH 14/14] staging: lustre: llite: add support set_acl method in inode operations

2017-08-14 Thread James Simmons
183 Reviewed-on: https://review.whamcloud.com/25965 Reviewed-by: Bob Glossman <bob.gloss...@intel.com> Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Oleg Drokin <oleg.dro...@intel.com> Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lus

[PATCH 14/14] staging: lustre: llite: add support set_acl method in inode operations

2017-08-14 Thread James Simmons
Glossman Reviewed-by: James Simmons Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/llite/file.c | 58 ++ .../staging/lustre/lustre/llite/llite_internal.h | 4 ++ drivers/staging/lustre/lustre/llite/namei.c| 10 +++- 3

[PATCH 12/14] staging: lustre: llite: cleanup xattr code comments

2017-08-14 Thread James Simmons
Add proper punctuation to the comments. Change buf_size to size for comment in ll_listxattr() since buf_size doesn't exit which will confuse someone reading the code. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on:

[PATCH 12/14] staging: lustre: llite: cleanup xattr code comments

2017-08-14 Thread James Simmons
Add proper punctuation to the comments. Change buf_size to size for comment in ll_listxattr() since buf_size doesn't exit which will confuse someone reading the code. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-9183 Reviewed-on: https://review.whamcloud.com

[PATCH 01/64] staging: lustre: uapi: Move functions out of lustre_idl.h

2017-08-14 Thread James Simmons
Delete unused lmv_mds_md_stripe_count and agent_req_in_final_state. Signed-off-by: Ben Evans <bev...@cray.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: http://review.whamcloud.com/21484 Reviewed-by: Frank Zago <fz...@cray.com> Reviewed-by: James Simmons &

[PATCH 01/64] staging: lustre: uapi: Move functions out of lustre_idl.h

2017-08-14 Thread James Simmons
lmv_mds_md_stripe_count and agent_req_in_final_state. Signed-off-by: Ben Evans Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: http://review.whamcloud.com/21484 Reviewed-by: Frank Zago Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Reviewed-by: John L. Hammond Signed-off

[PATCH 00/64] staging: lustre: uapi: normalize the lustre headers

2017-08-14 Thread James Simmons
: move lu_fid, ost_id funcs out of lustre_idl.h James Simmons (60): staging: lustre: uapi: remove unused functions for lustre_fid.h staging: lustre: uapi: remove unused function in lustre_disk.h staging: lustre: uapi: remove userland version of obd_ioctl_*() staging: lustre: uapi: remove

[PATCH 00/64] staging: lustre: uapi: normalize the lustre headers

2017-08-14 Thread James Simmons
: move lu_fid, ost_id funcs out of lustre_idl.h James Simmons (60): staging: lustre: uapi: remove unused functions for lustre_fid.h staging: lustre: uapi: remove unused function in lustre_disk.h staging: lustre: uapi: remove userland version of obd_ioctl_*() staging: lustre: uapi: remove

[PATCH 03/64] staging: lustre: uapi: return error code for ostid_set_id

2017-08-14 Thread James Simmons
print the error instead. Signed-off-by: Ben Evans <bev...@cray.com> Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/22712 Reviewed-on: https://review.whamcloud.com/24569 Reviewed-by: Ja

[PATCH 03/64] staging: lustre: uapi: return error code for ostid_set_id

2017-08-14 Thread James Simmons
instead. Signed-off-by: Ben Evans Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/22712 Reviewed-on: https://review.whamcloud.com/24569 Reviewed-by: James Simmons Reviewed-by: Frank Zago Reviewed-by: Oleg Drokin Signed

[PATCH 06/64] staging: lustre: uapi: remove unused function in lustre_disk.h

2017-08-14 Thread James Simmons
Delete code that is used by only the server or just in user land. Now this file is a normal kernel header. The UAPI version of this header is only needed for server side so no need to create a new header in uapi directory. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id:

[PATCH 06/64] staging: lustre: uapi: remove unused function in lustre_disk.h

2017-08-14 Thread James Simmons
Delete code that is used by only the server or just in user land. Now this file is a normal kernel header. The UAPI version of this header is only needed for server side so no need to create a new header in uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com

[PATCH 02/64] staging: lustre: uapi: remove unused functions for lustre_fid.h

2017-08-14 Thread James Simmons
The inline function fid_is_namespace_visible and ost_fid_from_resid are only used for server code so we can remove it. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lustre/include/lustre_fid.h | 29 -- 1 file changed, 29 deletions(-)

[PATCH 02/64] staging: lustre: uapi: remove unused functions for lustre_fid.h

2017-08-14 Thread James Simmons
The inline function fid_is_namespace_visible and ost_fid_from_resid are only used for server code so we can remove it. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/include/lustre_fid.h | 29 -- 1 file changed, 29 deletions(-) diff --git a/drivers/staging

[PATCH 08/64] staging: lustre: uapi: remove obd_ioctl_freedata() wrapper

2017-08-14 Thread James Simmons
Replace obd_ioctl_freedata() with direct kvfree() call. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Reviewed-by: Be

[PATCH 08/64] staging: lustre: uapi: remove obd_ioctl_freedata() wrapper

2017-08-14 Thread James Simmons
Replace obd_ioctl_freedata() with direct kvfree() call. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James

[PATCH 09/64] staging: lustre: uapi: remove obd_ioctl_popdata() wrapper

2017-08-14 Thread James Simmons
Replace obd_ioctl_popdata() with direct copy_to_user() call. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Reviewed-b

[PATCH 09/64] staging: lustre: uapi: remove obd_ioctl_popdata() wrapper

2017-08-14 Thread James Simmons
Replace obd_ioctl_popdata() with direct copy_to_user() call. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James

[PATCH 10/64] staging: lustre: uapi: move obd_ioctl_getdata() declaration

2017-08-14 Thread James Simmons
Move obd_ioctl_getdata() from lustre_ioctl.h to obd_class.h since this function is only used by kernel space. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas

[PATCH 11/64] staging: lustre: uapi: move obd_ioctl_is_invalid() to linux-module.c

2017-08-14 Thread James Simmons
The inline function obd_ioctl_is_invalid() is no longer needed by userland and also the function was pretty bug for a inline function. Since this is the case we can move this kernel only code to the linux-module.c which is the only place it is used. Signed-off-by: James Simmons <uj

[PATCH 10/64] staging: lustre: uapi: move obd_ioctl_getdata() declaration

2017-08-14 Thread James Simmons
Move obd_ioctl_getdata() from lustre_ioctl.h to obd_class.h since this function is only used by kernel space. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans

[PATCH 11/64] staging: lustre: uapi: move obd_ioctl_is_invalid() to linux-module.c

2017-08-14 Thread James Simmons
The inline function obd_ioctl_is_invalid() is no longer needed by userland and also the function was pretty bug for a inline function. Since this is the case we can move this kernel only code to the linux-module.c which is the only place it is used. Signed-off-by: James Simmons Intel-bug-id

[PATCH 12/64] staging: lustre: uapi: move lustre_ioctl.h to uapi directory

2017-08-14 Thread James Simmons
Move the header lustre_ioctl.h to proper uapi directory. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Reviewed-by: Be

[PATCH 12/64] staging: lustre: uapi: move lustre_ioctl.h to uapi directory

2017-08-14 Thread James Simmons
Move the header lustre_ioctl.h to proper uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James

[PATCH 04/64] staging: lustre: uapi: update URL doc link in lustre_fid.h

2017-08-14 Thread James Simmons
From: Ben Evans <bev...@cray.com> The wiki has been revived so update the URL about the FID design in lustre_fid.h. Signed-off-by: Ben Evans <bev...@cray.com> Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401

[PATCH 04/64] staging: lustre: uapi: update URL doc link in lustre_fid.h

2017-08-14 Thread James Simmons
From: Ben Evans The wiki has been revived so update the URL about the FID design in lustre_fid.h. Signed-off-by: Ben Evans Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/22712 Reviewed-on: https

[PATCH 14/64] staging: lustre: uapi: cleanup headers for lustre_ioctl.h

2017-08-14 Thread James Simmons
With the cleanups we no longer need to drag in tons of user land headers. Lets simplify the include headers. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas

[PATCH 14/64] staging: lustre: uapi: cleanup headers for lustre_ioctl.h

2017-08-14 Thread James Simmons
With the cleanups we no longer need to drag in tons of user land headers. Lets simplify the include headers. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans

[PATCH 13/64] staging: lustre: uapi: use __ALIGN_KERNEL for lustre_ioctl.h

2017-08-14 Thread James Simmons
Replace cfs_size_round() standard __ALIGN_KERNEL macro. This removes the dependency of libcfs.h which is a kernel only header. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Re

[PATCH 13/64] staging: lustre: uapi: use __ALIGN_KERNEL for lustre_ioctl.h

2017-08-14 Thread James Simmons
Replace cfs_size_round() standard __ALIGN_KERNEL macro. This removes the dependency of libcfs.h which is a kernel only header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger

[PATCH 18/64] staging: lustre: uapi: move lustre_param.h to uapi directory

2017-08-14 Thread James Simmons
Move the header lustre_param.h to proper uapi directory. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans <bev...@cray.com> Reviewed-by: John L. Hammon

[PATCH 18/64] staging: lustre: uapi: move lustre_param.h to uapi directory

2017-08-14 Thread James Simmons
Move the header lustre_param.h to proper uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: James

[PATCH 19/64] staging: lustre: uapi: label lustre_param.h as an uapi header

2017-08-14 Thread James Simmons
Change LUSTRE_PARAM_H_ to _UAPI_LUSTRE_PARAM_H_ now that is a proper UAPI header Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans <bev...@cray.com> Reviewe

[PATCH 19/64] staging: lustre: uapi: label lustre_param.h as an uapi header

2017-08-14 Thread James Simmons
Change LUSTRE_PARAM_H_ to _UAPI_LUSTRE_PARAM_H_ now that is a proper UAPI header Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin

[PATCH 20/64] staging: lustre: uapi: style cleanups for lustre_param.h

2017-08-14 Thread James Simmons
Remove the white space in the lustre_param.h header and align the code so its easier to read. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans <bev...

[PATCH 20/64] staging: lustre: uapi: style cleanups for lustre_param.h

2017-08-14 Thread James Simmons
Remove the white space in the lustre_param.h header and align the code so its easier to read. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L. Hammond Reviewed

[PATCH 16/64] staging: lustre: uapi: move kernel only prototypes out of lustre_param.h

2017-08-14 Thread James Simmons
Move all the kernel specific function prototypes from lustre_param.h into obd_config.h which is a kernel only header. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben

[PATCH 16/64] staging: lustre: uapi: move kernel only prototypes out of lustre_param.h

2017-08-14 Thread James Simmons
Move all the kernel specific function prototypes from lustre_param.h into obd_config.h which is a kernel only header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L

[PATCH 21/64] staging: lustre: uapi: remove lustre_cfg_free wrapper

2017-08-14 Thread James Simmons
Replace all lustre_cfg_free() calls with direct kfree() call. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget <quentin.bou...@cea.fr> Reviewed-by: Be

[PATCH 21/64] staging: lustre: uapi: remove lustre_cfg_free wrapper

2017-08-14 Thread James Simmons
Replace all lustre_cfg_free() calls with direct kfree() call. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James

[PATCH 17/64] staging: lustre: uapi: remove included headers out of lustre_param.h

2017-08-14 Thread James Simmons
All the included headers in lustre_param.h are lustre kernel internal headers and they are not even needed. Just remove them. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-b

[PATCH 17/64] staging: lustre: uapi: remove included headers out of lustre_param.h

2017-08-14 Thread James Simmons
All the included headers in lustre_param.h are lustre kernel internal headers and they are not even needed. Just remove them. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed

[PATCH 22/64] staging: lustre: uapi: don't memory allocate in UAPI header

2017-08-14 Thread James Simmons
-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget <quentin.bou...@cea.fr> Reviewed-by: Ben Evans <bev...@cray.com> Reviewed-by: Oleg Drokin <oleg.dro...@

[PATCH 22/64] staging: lustre: uapi: don't memory allocate in UAPI header

2017-08-14 Thread James Simmons
-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/include/lustre_cfg.h | 11

[PATCH 23/64] staging: lustre: uapi: move lustre_cfg_string() to obd_config.c

2017-08-14 Thread James Simmons
To perserve the truncate warning move lustre_cfg_string() to obd_config.c. A identical function was created for userland. This function was a bit big for a inline function. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Re

[PATCH 23/64] staging: lustre: uapi: move lustre_cfg_string() to obd_config.c

2017-08-14 Thread James Simmons
To perserve the truncate warning move lustre_cfg_string() to obd_config.c. A identical function was created for userland. This function was a bit big for a inline function. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https

[PATCH 25/64] staging: lustre: uapi: move lustre_cfg.h to uapi directory

2017-08-14 Thread James Simmons
Move lustre_cfg.h to its proper place. Adjust additonal headers included in lustre_cfg.h. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget <quentin.bou.

[PATCH 25/64] staging: lustre: uapi: move lustre_cfg.h to uapi directory

2017-08-14 Thread James Simmons
Move lustre_cfg.h to its proper place. Adjust additonal headers included in lustre_cfg.h. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg

[PATCH 15/64] staging: lustre: uapi: label lustre_ioctl.h as a UAPI header

2017-08-14 Thread James Simmons
Change LUSTRE_IOCTL_H_ to _UAPI_LUSTRE_IOCTL_H_ now that is a proper UAPI header Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger <andreas.dil...@

[PATCH 15/64] staging: lustre: uapi: label lustre_ioctl.h as a UAPI header

2017-08-14 Thread James Simmons
Change LUSTRE_IOCTL_H_ to _UAPI_LUSTRE_IOCTL_H_ now that is a proper UAPI header Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin

[PATCH 26/64] staging: lustre: uapi: remove need for libcfs.h from lustre_cfg.h

2017-08-14 Thread James Simmons
Several libcfs.h macros are present in lustre_cfg.h, but libcfs.h is not available so lets replace those macros with real code. The header libcfs.h also provides errno.h so with libcfs.h gone include errno.h directly. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id:

[PATCH 26/64] staging: lustre: uapi: remove need for libcfs.h from lustre_cfg.h

2017-08-14 Thread James Simmons
Several libcfs.h macros are present in lustre_cfg.h, but libcfs.h is not available so lets replace those macros with real code. The header libcfs.h also provides errno.h so with libcfs.h gone include errno.h directly. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse

[PATCH 30/64] staging: lustre: uapi: label lustre_cfg.h as an uapi header

2017-08-14 Thread James Simmons
Change LUSTRE_CFG_H to _UAPI_LUSTRE_CFG_H_ now that it is a proper UAPI header. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget <quentin.bou...@cea.fr&

[PATCH 30/64] staging: lustre: uapi: label lustre_cfg.h as an uapi header

2017-08-14 Thread James Simmons
Change LUSTRE_CFG_H to _UAPI_LUSTRE_CFG_H_ now that it is a proper UAPI header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin

[PATCH 24/64] staging: lustre: obdclass: no need to check for kfree

2017-08-14 Thread James Simmons
In class_config_llog_handler() a flag, inst, was used to determine if it was safe to call kfree. Its not needed so remove the flag. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Re

[PATCH 24/64] staging: lustre: obdclass: no need to check for kfree

2017-08-14 Thread James Simmons
In class_config_llog_handler() a flag, inst, was used to determine if it was safe to call kfree. Its not needed so remove the flag. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget

[PATCH 28/64] staging: lustre: uapi: check if argument for lustre_cfg_buf() is NULL

2017-08-14 Thread James Simmons
Check if lcfg passed in is NULL and if it is just return NULL. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: J

[PATCH 28/64] staging: lustre: uapi: check if argument for lustre_cfg_buf() is NULL

2017-08-14 Thread James Simmons
Check if lcfg passed in is NULL and if it is just return NULL. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry Eremin Reviewed-by: Jinshan Xiong Reviewed-by: Fan Yong Reviewed-by: Oleg

[PATCH 31/64] staging: lustre: libcfs: remove htonl hack in libcfs.h

2017-08-14 Thread James Simmons
This is really old hack for earlier gcc version that had a hard time compiling byteorder.h. Lets remove it. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry

[PATCH 31/64] staging: lustre: libcfs: remove htonl hack in libcfs.h

2017-08-14 Thread James Simmons
This is really old hack for earlier gcc version that had a hard time compiling byteorder.h. Lets remove it. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry Eremin Reviewed-by: Jinshan Xiong

[PATCH 27/64] staging: lustre: uapi: change variable type to match

2017-08-14 Thread James Simmons
Change i from int to __u32 to match lcfg_bufcount field. Also this matches what the other functions also do. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin

[PATCH 27/64] staging: lustre: uapi: change variable type to match

2017-08-14 Thread James Simmons
Change i from int to __u32 to match lcfg_bufcount field. Also this matches what the other functions also do. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans

[PATCH 33/64] staging: lustre: libcfs: create libcfs_debug.h UAPI header

2017-08-14 Thread James Simmons
Break out the parts from libcfs_debug.h that is used by both user land and kernel space into a new UAPI header. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry

[PATCH 33/64] staging: lustre: libcfs: create libcfs_debug.h UAPI header

2017-08-14 Thread James Simmons
Break out the parts from libcfs_debug.h that is used by both user land and kernel space into a new UAPI header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf

[PATCH 29/64] staging: lustre: uapi: style cleanup of lustre_cfg.h

2017-08-14 Thread James Simmons
Some style and white space cleanups to make lustre_cfg.h easy to read. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget <quentin.bou...@cea.fr> Revi

[PATCH 35/64] staging: lustre: lnet: delete lnet.h

2017-08-14 Thread James Simmons
The header lnet.h is just a bunch of headers included in a header. Just delete it and include the appropriate headers where needed. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Re

[PATCH 29/64] staging: lustre: uapi: style cleanup of lustre_cfg.h

2017-08-14 Thread James Simmons
Some style and white space cleanups to make lustre_cfg.h easy to read. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off

[PATCH 35/64] staging: lustre: lnet: delete lnet.h

2017-08-14 Thread James Simmons
The header lnet.h is just a bunch of headers included in a header. Just delete it and include the appropriate headers where needed. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin

[PATCH 34/64] staging: lustre: socklnd: create socklnd.h UAPI header

2017-08-14 Thread James Simmons
Break out the parts from libcfs_debug.h that is used by both user land and kernel space into a new UAPI header. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry

[PATCH 36/64] staging: lustre: lnet: migrate headers to lnet uapi directory

2017-08-14 Thread James Simmons
Migrate the headers used by user land and kernel space to the libcfs/lnet uapi directory. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin <dmitry.ere...@

[PATCH 34/64] staging: lustre: socklnd: create socklnd.h UAPI header

2017-08-14 Thread James Simmons
Break out the parts from libcfs_debug.h that is used by both user land and kernel space into a new UAPI header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf

[PATCH 36/64] staging: lustre: lnet: migrate headers to lnet uapi directory

2017-08-14 Thread James Simmons
Migrate the headers used by user land and kernel space to the libcfs/lnet uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf Weber Reviewed-by: Oleg

[PATCH 38/64] staging: lustre: lnet: remove userland function prototype in lnetctl.h

2017-08-14 Thread James Simmons
Several function prototypes of the form jt_ptl_* are only needed by userland so they can be removed. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/17643 Reviewed-by: Bob Glossman <

[PATCH 38/64] staging: lustre: lnet: remove userland function prototype in lnetctl.h

2017-08-14 Thread James Simmons
Several function prototypes of the form jt_ptl_* are only needed by userland so they can be removed. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/17643 Reviewed-by: Bob Glossman Reviewed-by: John L. Hammond

[PATCH 41/64] staging: lustre: uapi: migrate remaining uapi headers to uapi directory

2017-08-14 Thread James Simmons
Move all the remaining lustre headers shared between user land and kernel space to the uapi directory. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/25246 Reviewed-by: Quentin

[PATCH 41/64] staging: lustre: uapi: migrate remaining uapi headers to uapi directory

2017-08-14 Thread James Simmons
Move all the remaining lustre headers shared between user land and kernel space to the uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/25246 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans

[PATCH 37/64] staging: lustre: libcfs: sort headers in libcfs.h

2017-08-14 Thread James Simmons
Move all the included headers in libcfs.h to the top of the file. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by

[PATCH 37/64] staging: lustre: libcfs: sort headers in libcfs.h

2017-08-14 Thread James Simmons
Move all the included headers in libcfs.h to the top of the file. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf Weber Reviewed-by: Oleg Drokin Signed-off

[PATCH 39/64] staging: lustre: lnet: remove BIT macro from lnetctl.h

2017-08-14 Thread James Simmons
Now that lnetctl.h is a UAPI header the BIT macro has to be removed. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/include/uapi/linux/lnet/lnetctl.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/includ

[PATCH 42/64] staging: lustre: uapi: remove CONFIG_LUSTRE_OBD_MAX_IOCTL

2017-08-14 Thread James Simmons
to something other than 8K could actually break things. The best option is just hard code it to 8K. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/25246 Reviewed-by: Quentin Bouget <quentin.bou.

[PATCH 39/64] staging: lustre: lnet: remove BIT macro from lnetctl.h

2017-08-14 Thread James Simmons
Now that lnetctl.h is a UAPI header the BIT macro has to be removed. Signed-off-by: James Simmons --- drivers/staging/lustre/include/uapi/linux/lnet/lnetctl.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/include/uapi/linux/lnet/lnetctl.h b

[PATCH 42/64] staging: lustre: uapi: remove CONFIG_LUSTRE_OBD_MAX_IOCTL

2017-08-14 Thread James Simmons
to something other than 8K could actually break things. The best option is just hard code it to 8K. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/25246 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed

<    1   2   3   4   5   6   7   8   9   10   >