Linus Torvalds
98b9f8a454
Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
...
Pull ext4 fixes from Ted Ts'o:
"Fix a clang build regression and an potential xattr corruption bug"
* tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
ext4: add missing xattr hash update
ext4: fix clang build regression
2017-08-22 21:30:52 -07:00
William Tu
e3d0328c76
gre: fix goto statement typo
...
Fix typo: pnet_tap_faied.
Signed-off-by: William Tu <u9012063@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-08-22 21:28:37 -07:00
David S. Miller
572a5767f1
Merge branch 'bpf-minor-cleanups'
...
Daniel Borkmann says:
====================
Two minor BPF cleanups
Two minor cleanups on devmap and redirect I still had
in my queue.
====================
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-08-22 21:26:30 -07:00
Daniel Borkmann
af4d045cee
bpf: minor cleanups for dev_map
...
Some minor code cleanups, while going over it I also noticed that
we're accounting the bitmap only for one CPU currently, so fix that
up as well.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
Acked-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-08-22 21:26:29 -07:00
Daniel Borkmann
e4a8e817d3
bpf: misc xdp redirect cleanups
...
Few cleanups including: bpf_redirect_map() is really XDP only due to
the return code. Move it to a more appropriate location where we do
the XDP redirect handling and change it's name into bpf_xdp_redirect_map()
to make it consistent to the bpf_xdp_redirect() helper.
xdp_do_redirect_map() helper can be static since only used out of filter.c
file. Drop the goto in xdp_do_generic_redirect() and only return errors
directly. In xdp_do_flush_map() only clear ri->map_to_flush which is the
arg we're using in that function, ri->map is cleared earlier along with
ri->ifindex.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
Acked-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-08-22 21:26:29 -07:00
Dan Carpenter
bd46fc406b
scsi: sg: off by one in sg_ioctl()
...
If "val" is SG_MAX_QUEUE then we are one element beyond the end of the
"rinfo" array so the > should be >=.
Fixes: 109bade9c6 ("scsi: sg: use standard lists for sg_requests")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Acked-by: Douglas Gilbert <dgilbert@interlog.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
2017-08-22 22:23:42 -04:00
Brian King
723cd772fd
scsi: ipr: Set no_report_opcodes for RAID arrays
...
Since ipr RAID arrays do not support the MAINTENANCE_IN /
MI_REPORT_SUPPORTED_OPERATION_CODES, set no_report_opcodes to prevent it
from being sent.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
2017-08-22 22:23:36 -04:00
Todd Kjos
4f9adc8f91
binder: fix incorrect cmd to binder_stat_br
...
commit 26549d1774 ("binder: guarantee txn complete / errors delivered
in-order") passed the locally declared and undefined cmd
to binder_stat_br() which results in a bogus cmd field in a trace
event and BR stats are incremented incorrectly.
Change to use e->cmd which has been initialized.
Signed-off-by: Todd Kjos <tkjos@google.com >
Reported-by: Dan Carpenter <dan.carpenter@oracle.com >
Fixes: 26549d1774 ("binder: guarantee txn complete / errors delivered in-order")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:48:22 -07:00
Christian Brauner
22eb9476b5
binder: free memory on error
...
On binder_init() the devices string is duplicated and smashed into individual
device names which are passed along. However, the original duplicated string
wasn't freed in case binder_init() failed. Let's free it on error.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:45:07 -07:00
Martijn Coenen
9e18d0c82f
ANDROID: binder: add hwbinder,vndbinder to BINDER_DEVICES.
...
These will be required going forward.
Signed-off-by: Martijn Coenen <maco@android.com >
Cc: stable <stable@vger.kernel.org > # 4.11+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:43:23 -07:00
Martijn Coenen
5cdcf4c6a6
ANDROID: binder: add padding to binder_fd_array_object.
...
binder_fd_array_object starts with a 4-byte header,
followed by a few fields that are 8 bytes when
ANDROID_BINDER_IPC_32BIT=N.
This can cause alignment issues in a 64-bit kernel
with a 32-bit userspace, as on x86_32 an 8-byte primitive
may be aligned to a 4-byte address. Pad with a __u32
to fix this.
Signed-off-by: Martijn Coenen <maco@android.com >
Cc: stable <stable@vger.kernel.org > # 4.11+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:43:23 -07:00
Martijn Coenen
b2a6d1b999
ANDROID: binder: fix proc->tsk check.
...
Commit c4ea41ba19 ("binder: use group leader instead of open thread")'
was incomplete and didn't update a check in binder_mmap(), causing all
mmap() calls into the binder driver to fail.
Signed-off-by: Martijn Coenen <maco@android.com >
Tested-by: John Stultz <john.stultz@linaro.org >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:42:57 -07:00
James Simmons
30b7b04c46
staging: lustre: lnet: cleanup paths for all LNet headers
...
Rationalize include paths in all the lnet header files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
d3d09f6f77
staging: lustre: libcfs: cleanup paths for libcfs headers
...
Rationalize include paths in all the libcfs header files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
f9f6b24bc5
staging: lustre: libcfs: add include path to Makefile
...
Rationalize include paths in the libcfs source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
95884b8a08
staging: lustre: ksocklnd: add include path to Makefile
...
Rationalize include paths in the ksocklnd source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
895dc4b1bf
staging: lustre: ko2iblnd: add include path to Makefile
...
Rationalize include paths in the ko2iblnd source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
709b4c54e5
staging: lustre: lnet: add include path to Makefile
...
Rationalize include paths in the lnet core source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
a33e20b66c
staging: lustre: lnet: selftest: add include path to Makefile
...
Rationalize include paths in the lnet selftest source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
8d4fafa6ae
staging: lustre: lustre: cleanup paths for lustre UAPI headers
...
Rationalize include paths for the lustre uapi headers
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
8c355a7a33
staging: lustre: lustre: cleanup paths for lustre internal headers
...
Rationalize include paths for the lustre internal headers
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
fcda61a9f2
staging: lustre: osc: add include path to Makefile
...
Rationalize include paths in the osc source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:52 -07:00
James Simmons
b69260b962
staging: lustre: obdecho: add include path to Makefile
...
Rationalize include paths in the obdecho source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
e6f227ef61
staging: lustre: obdclass: add include path to Makefile
...
Rationalize include paths in the obdclass source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
7e270b3012
staging: lustre: mgc: add include path to Makefile
...
Rationalize include paths in the mgc source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
28c5522508
staging: lustre: mdc: add include path to Makefile
...
Rationalize include paths in the mdc source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
2efb9f5877
staging: lustre: lov: add include path to Makefile
...
Rationalize include paths in the lov source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
873d2e7d4f
staging: lustre: lmv: add include path to Makefile
...
Rationalize include paths in the lmv source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
b2e475b16c
staging: lustre: llite: add include path to Makefile
...
Rationalize include paths in the llite source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
ea6882bfd9
staging: lustre: ptlrpc: add include path to Makefile
...
Rationalize include paths in the ptlrpc/ldlm source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
b2a0f9e071
staging: lustre: fld: add include path to Makefile
...
Rationalize include paths in the fld source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
3bca1c1754
staging: lustre: fid: add include path to Makefile
...
Start to rationalize include paths in the fid source code files.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
7b76f86b73
staging: lustre: uapi: remove BIT macro from UAPI headers
...
The BIT macro is not available for UAPI headers so remove
it from the lustre UAPI headers.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:51 -07:00
James Simmons
aec63d7ab8
staging: lustre: uapi: use proper byteorder functions in lustre_idl.h
...
In order for lustre_idl.h to be usable for both user
land and kernel space it has to use the proper
byteorder functions.
Signed-off-by: James Simmons <uja.ornl@yahoo.com >
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/16916
Reviewed-by: Frank Zago <fzago@cray.com >
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Reviewed-by: John L. Hammond <john.hammond@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
72c5290bf9
staging: lustre: uapi: remove CONFIG_LUSTRE_OBD_MAX_IOCTL
...
Now that lustre_ioctl.h is a UAPI header the kernel configuration
option CONFIG_LUSTRE_OBD_MAX_IOCTL needs to be remove. The user
land utilites will no longer be able to see this option and
actually they never used this option before. Since this is the
case setting the kernel configuration 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.ornl@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.bouget@cea.fr >
Reviewed-by: Ben Evans <bevans@cray.com >
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
e86a615146
staging: lustre: uapi: migrate remaining uapi headers to uapi directory
...
Move all the remaining lustre headers shared between user land
and kernel space to the uapi directory.
Signed-off-by: James Simmons <uja.ornl@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.bouget@cea.fr >
Reviewed-by: Ben Evans <bevans@cray.com >
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
1c07bedf73
staging: lustre: uapi: remove libcfs.h from lustre_id.h/lustre_user.h
...
These are the last UAPI headers that contain libcfs.h which is
internal kernel header. Since it is not available to user land
remove libcfs.h and add the need headers that libcfs.h provided.
Signed-off-by: James Simmons <uja.ornl@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.eremin@intel.com >
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com >
Reviewed-by: Fan Yong <fan.yong@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
fa6f479cf7
staging: lustre: lnet: remove BIT macro from lnetctl.h
...
Now that lnetctl.h is a UAPI header the BIT macro has to be
removed.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
150414213e
staging: lustre: lnet: remove userland function prototype in lnetctl.h
...
Several function prototypes of the form jt_ptl_* are only needed
by userland so they can be removed.
Signed-off-by: James Simmons <uja.ornl@yahoo.com >
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/17643
Reviewed-by: Bob Glossman <bob.glossman@intel.com >
Reviewed-by: John L. Hammond <john.hammond@intel.com >
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
6c1c720130
staging: lustre: libcfs: sort headers in libcfs.h
...
Move all the included headers in libcfs.h to the top of the
file.
Signed-off-by: James Simmons <uja.ornl@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.eremin@intel.com >
Reviewed-by: Olaf Weber <olaf.weber@hpe.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
037697dc2a
staging: lustre: lnet: migrate headers to lnet uapi directory
...
Migrate the headers used by user land and kernel space to the
libcfs/lnet uapi directory.
Signed-off-by: James Simmons <uja.ornl@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.eremin@intel.com >
Reviewed-by: Olaf Weber <olaf.weber@hpe.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
28cb3e268f
staging: lustre: lnet: delete lnet.h
...
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.ornl@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.eremin@intel.com >
Reviewed-by: Olaf Weber <olaf.weber@hpe.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
e4d64b3084
staging: lustre: socklnd: create socklnd.h UAPI header
...
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.ornl@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.eremin@intel.com >
Reviewed-by: Olaf Weber <olaf.weber@hpe.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:50 -07:00
James Simmons
ad6f42598b
staging: lustre: libcfs: create libcfs_debug.h UAPI header
...
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.ornl@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.eremin@intel.com >
Reviewed-by: Olaf Weber <olaf.weber@hpe.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00
James Simmons
cef7b965ae
staging: lustre: libcfs: remove LOGL and LOGU macros
...
The macro LOGU is not used anymore and LOGL is used in
one place. No reason to keep LOGL around anymore.
Signed-off-by: James Simmons <uja.ornl@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.eremin@intel.com >
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com >
Reviewed-by: Fan Yong <fan.yong@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00
James Simmons
6efbda3d62
staging: lustre: libcfs: remove htonl hack in libcfs.h
...
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.ornl@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.eremin@intel.com >
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com >
Reviewed-by: Fan Yong <fan.yong@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00
James Simmons
d0982327a7
staging: lustre: uapi: label lustre_cfg.h as an uapi header
...
Change LUSTRE_CFG_H to _UAPI_LUSTRE_CFG_H_ now that it is
a proper UAPI header.
Signed-off-by: James Simmons <uja.ornl@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.bouget@cea.fr >
Reviewed-by: Ben Evans <bevans@cray.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00
James Simmons
6238fbd2f6
staging: lustre: uapi: style cleanup of lustre_cfg.h
...
Some style and white space cleanups to make lustre_cfg.h
easy to read.
Signed-off-by: James Simmons <uja.ornl@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.bouget@cea.fr >
Reviewed-by: Ben Evans <bevans@cray.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00
James Simmons
ef27faebba
staging: lustre: uapi: check if argument for lustre_cfg_buf() is NULL
...
Check if lcfg passed in is NULL and if it is just return NULL.
Signed-off-by: James Simmons <uja.ornl@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.eremin@intel.com >
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com >
Reviewed-by: Fan Yong <fan.yong@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00
James Simmons
63d384bfa6
staging: lustre: uapi: change variable type to match
...
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.ornl@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.bouget@cea.fr >
Reviewed-by: Ben Evans <bevans@cray.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-08-22 18:36:49 -07:00