]> git.karo-electronics.de Git - linux-beck.git/log
linux-beck.git
8 years agostaging: unisys: clean up initiate_chipset_device_pause_resume()
Benjamin Romer [Tue, 23 Feb 2016 15:01:54 +0000 (10:01 -0500)]
staging: unisys: clean up initiate_chipset_device_pause_resume()

Simplify this function by removing the goto in favor of handling errors
immediately. Eliminate the vaguely-named variable x, and remove the
unneeded initialization of rc. Lastly, provide meaningful error values
to the callback function instead of just passing back a -1 for failure.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: remove pointless init of rc in chipset_device_create()
Benjamin Romer [Tue, 23 Feb 2016 15:01:53 +0000 (10:01 -0500)]
staging: unisys: remove pointless init of rc in chipset_device_create()

The value of rc is set by calling a function, so there's no need to
initialize it to -1, or anything at all.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: get rid of goto in create_bus_instance()
Benjamin Romer [Tue, 23 Feb 2016 15:01:52 +0000 (10:01 -0500)]
staging: unisys: get rid of goto in create_bus_instance()

Remove the unnecessary rc and goto messiness, and just handle freeing
the memory before returning an error in the one place where that needs
to happen.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: cleanup rc -1 in create_visor_device()
Benjamin Romer [Tue, 23 Feb 2016 17:44:16 +0000 (12:44 -0500)]
staging: unisys: cleanup rc -1 in create_visor_device()

Get rid of the rc = -1 initialization. Return a meaningful error on
failure in the function, or, the rc from a called function if it fails.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: remove goto in get_vbus_header_info
Benjamin Romer [Tue, 23 Feb 2016 15:01:50 +0000 (10:01 -0500)]
staging: unisys: remove goto in get_vbus_header_info

Remove the rc, the = -1, and all the goto mess here and just return
directly with a meaningful error number.

The caller only cares about success/failure right now, that needs to be
addressed in a later patch series.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: fix return value for visorbus pci probe
Benjamin Romer [Tue, 23 Feb 2016 15:01:49 +0000 (10:01 -0500)]
staging: unisys: fix return value for visorbus pci probe

Instead of returning -1, return -ENODEV when there is no probe function
found for the device.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: update TODO
Aaro Koskinen [Fri, 26 Feb 2016 00:14:06 +0000 (02:14 +0200)]
staging: octeon-usb: update TODO

Update TODO.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: avoid an overlong line
Aaro Koskinen [Fri, 26 Feb 2016 00:14:05 +0000 (02:14 +0200)]
staging: octeon-usb: avoid an overlong line

Avoid an overlong line.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: move next pipe selection into a separate function
Aaro Koskinen [Fri, 26 Feb 2016 00:14:04 +0000 (02:14 +0200)]
staging: octeon-usb: move next pipe selection into a separate function

Move next pipe selection into a separate function to avoid deep
nesting.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: move isoc transfer handling into separate function
Aaro Koskinen [Fri, 26 Feb 2016 00:14:03 +0000 (02:14 +0200)]
staging: octeon-usb: move isoc transfer handling into separate function

Move isochronous transfer handling into a separate function to
avoid deep indentation.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: move interrupt transfer handling into separate function
Aaro Koskinen [Fri, 26 Feb 2016 00:14:02 +0000 (02:14 +0200)]
staging: octeon-usb: move interrupt transfer handling into separate function

Move bulk transfer handling into a separate function to avoid
deep indentation.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: move bulk transfer handling into separate function
Aaro Koskinen [Fri, 26 Feb 2016 00:14:01 +0000 (02:14 +0200)]
staging: octeon-usb: move bulk transfer handling into separate function

Move bulk transfer handling into a separate function to avoid
deep indentation.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: move control transfer handling into separate function
Aaro Koskinen [Fri, 26 Feb 2016 00:14:00 +0000 (02:14 +0200)]
staging: octeon-usb: move control transfer handling into separate function

Move control transfer handling into a separate function to
avoid deep indentation.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: fold cvmx_usb_state into octeon_hcd
Aaro Koskinen [Fri, 26 Feb 2016 00:13:59 +0000 (02:13 +0200)]
staging: octeon-usb: fold cvmx_usb_state into octeon_hcd

Fold cvmx_usb_state into octeon_hcd.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: rename STATUS_SUCCESS to STATUS_OK
Aaro Koskinen [Fri, 26 Feb 2016 00:13:58 +0000 (02:13 +0200)]
staging: octeon-usb: rename STATUS_SUCCESS to STATUS_OK

Rename STATUS_SUCCESS to STATUS_OK.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: rename cvmx_usb_perform_complete to cvmx_usb_complete
Aaro Koskinen [Fri, 26 Feb 2016 00:13:57 +0000 (02:13 +0200)]
staging: octeon-usb: rename cvmx_usb_perform_complete to cvmx_usb_complete

Rename cvmx_usb_perform_complete to cvmx_usb_complete.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: rename cvmx_usb_complete to cvmx_usb_status
Aaro Koskinen [Fri, 26 Feb 2016 00:13:56 +0000 (02:13 +0200)]
staging: octeon-usb: rename cvmx_usb_complete to cvmx_usb_status

Rename cvmx_usb_complete to cvmx_usb_status.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: simplify if statement
Aaro Koskinen [Fri, 26 Feb 2016 00:13:55 +0000 (02:13 +0200)]
staging: octeon-usb: simplify if statement

Simplify if statement to avoid deep nesting.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: pass transfer type to find_ready_pipe
Aaro Koskinen [Fri, 26 Feb 2016 00:13:54 +0000 (02:13 +0200)]
staging: octeon-usb: pass transfer type to find_ready_pipe

Since we always search the same list, we can just pass the transfer type.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: eliminate redundant parameter from find_ready_pipe
Aaro Koskinen [Fri, 26 Feb 2016 00:13:53 +0000 (02:13 +0200)]
staging: octeon-usb: eliminate redundant parameter from find_ready_pipe

current_frame always equals usb->frame_number.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: align split lines to match open parenthesis
Aaro Koskinen [Fri, 26 Feb 2016 00:13:52 +0000 (02:13 +0200)]
staging: octeon-usb: align split lines to match open parenthesis

Align split lines to match open parenthesis.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: octeon-usb: use preferred style for NULL comparison
Aaro Koskinen [Fri, 26 Feb 2016 00:13:51 +0000 (02:13 +0200)]
staging: octeon-usb: use preferred style for NULL comparison

Use preferred coding style for NULL comparison.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: most: hdm-usb: Use macro DIV_ROUND_UP
Bhaktipriya Shridhar [Mon, 22 Feb 2016 12:27:42 +0000 (17:57 +0530)]
staging: most: hdm-usb: Use macro DIV_ROUND_UP

The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)).
It clarifies the divisor calculations. This occurence was detected using the
coccinelle script:
@@
expression e1;
expression e2;
@@
(
- ((e1) + e2 - 1) / (e2)
+ DIV_ROUND_UP(e1,e2)
|
- ((e1) + (e2 - 1))/ (e2)
+ DIV_ROUND_UP(e1,e2)
)

The macro CEILING was dropped altogether and has been replaced with
DIV_ROUND_UP.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: most: Do not print message if kzalloc() failed.
Sandhya Bankar [Sun, 21 Feb 2016 05:02:05 +0000 (10:32 +0530)]
Staging: most: Do not print message if kzalloc() failed.

Do not print message if kzalloc() failed.
kzalloc() has its own messages. So no need to add extra one.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: most: compress return logic into one line
Eva Rachel Retuya [Sun, 21 Feb 2016 07:29:38 +0000 (15:29 +0800)]
staging: most: compress return logic into one line

Eliminate local variable 'ret' and modify return statement to contain
the value being returned directly instead of assigning it first to 'ret'
and returning this variable.

Coccinelle semantic patch used:
@@ expression e, ret; @@
-ret =
+return
e;
-return ret;

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove code for HOST_IF_MSG_DEL_ALL_RX_BA_SESSIONS
Alison Schofield [Fri, 26 Feb 2016 05:53:34 +0000 (21:53 -0800)]
staging: wilc1000: remove code for HOST_IF_MSG_DEL_ALL_RX_BA_SESSIONS

The function that sent this message id was previously removed.
Finish the cleanup by removing the call to the message handler,
the message handler, and the #define.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u16reason in disconnect_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:50 +0000 (09:15 +0900)]
staging: wilc1000: rename u16reason in disconnect_info

This patch renames u16reason to reason to remove u16 prefix. There is no
need to use prefix to show data type.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename struct tstrDisconnectNotifInfo
Chaehyun Lim [Thu, 25 Feb 2016 00:15:49 +0000 (09:15 +0900)]
staging: wilc1000: rename struct tstrDisconnectNotifInfo

This patch renames struct tstrDisconnectNotifInfo to disconnect_info to
avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u16ConnectStatus in struct connect_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:48 +0000 (09:15 +0900)]
staging: wilc1000: rename u16ConnectStatus in struct connect_info

This patch renames u16ConnectStatus to status to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u16RespIEsLen in struct connect_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:47 +0000 (09:15 +0900)]
staging: wilc1000: rename u16RespIEsLen in struct connect_info

This patch renames u16RespIEsLen to resp_ies_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8RespIEs in struct connect_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:46 +0000 (09:15 +0900)]
staging: wilc1000: rename pu8RespIEs in struct connect_info

This patch renames pu8RespIEs to resp_ies to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename ReqIEsLen in struct connec_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:45 +0000 (09:15 +0900)]
staging: wilc1000: rename ReqIEsLen in struct connec_info

This patch renames ReqIEsLen to req_ies_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8ReqIEs in struct connect_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:44 +0000 (09:15 +0900)]
staging: wilc1000: rename pu8ReqIEs in struct connect_info

This patch renames pu8ReqIEs to req_ies to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename au8bssid in struct connect_info
Chaehyun Lim [Thu, 25 Feb 2016 00:15:43 +0000 (09:15 +0900)]
staging: wilc1000: rename au8bssid in struct connect_info

This patch renames au8bssid to bssid to remove au8 prefix in struct
connect_info. There is no need to use prefix to show data type of this
variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename struct tstrConnectInfo
Chaehyun Lim [Thu, 25 Feb 2016 00:15:42 +0000 (09:15 +0900)]
staging: wilc1000: rename struct tstrConnectInfo

This patch renames struct tstrConnectInfo to connect_info to avoid
camelcase and removes typedef.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: Remove useless return variables
Bhaktipriya Shridhar [Wed, 24 Feb 2016 20:27:54 +0000 (01:57 +0530)]
staging: wilc1000: Remove useless return variables

This patch removes unnecessary return variables and compresses the
return logic.
The coccinelle script that finds and fixes this issue is:

@@ type T; identifier i,f; constant C; @@
- T i;
...when != i
when strict
( return -C;
|
- i =
+ return
f(...);
- return i;
)

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: wilc_wlan.c: remove multiple blank line
Tony Cho [Wed, 24 Feb 2016 10:01:38 +0000 (19:01 +0900)]
staging: wilc1000: wilc_wlan.c: remove multiple blank line

This patch removes the multiple blank line reported by checkpatch.pl.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: wilc_wlan.c: remove unnecessary blank lines
Tony Cho [Wed, 24 Feb 2016 10:01:37 +0000 (19:01 +0900)]
staging: wilc1000: wilc_wlan.c: remove unnecessary blank lines

This patch removes unnecessary blank lines found by checkpatch.pl.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: Revert "staging: wilc1000: remove spaces around '->'"
Leo Kim [Tue, 23 Feb 2016 12:10:54 +0000 (21:10 +0900)]
staging: wilc1000: Revert "staging: wilc1000: remove spaces around '->'"

This reverts commit 6c2ab2398b88 ("staging: wilc1000: remove spaces around '->'").
It had applied from a incorrectly commit a1b56a4c5054
("staging: wilc1000: wilc_wfi_cfgoperations.c: removes unnecessary log messages").

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: removes unnecessary retry 3 times
Leo Kim [Tue, 23 Feb 2016 12:10:53 +0000 (21:10 +0900)]
staging: wilc1000: removes unnecessary retry 3 times

This patch removes unnecessary retry 3 times and related variable.
Actually the retry 3 times sentence, don't retry at all.
Repeats conditions are that until read a chip-id and written a register.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_cfg_param: remove unnecessary whitespace
Chaehyun Lim [Tue, 23 Feb 2016 06:38:03 +0000 (15:38 +0900)]
staging: wilc1000: handle_cfg_param: remove unnecessary whitespace

This patch removes unnecessary whitespace before a quoted newline found
by checkpatch
WARNING: unnecessary whitespace before a quoted newline

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_cfg_param: fix line over 80 characters
Chaehyun Lim [Tue, 23 Feb 2016 06:38:02 +0000 (15:38 +0900)]
staging: wilc1000: handle_cfg_param: fix line over 80 characters

This patch fixes line over 80 characters found by checkpatch
WARNING: line over 80 characters

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_cfg_param: fix logical continuations
Chaehyun Lim [Tue, 23 Feb 2016 06:38:01 +0000 (15:38 +0900)]
staging: wilc1000: handle_cfg_param: fix logical continuations

This patch fixes logical continuations found by checkpatch
CHECK: Logical continuations should be on the previous line

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_cfg_param: rename wid_cnt
Chaehyun Lim [Tue, 23 Feb 2016 06:38:00 +0000 (15:38 +0900)]
staging: wilc1000: handle_cfg_param: rename wid_cnt

wid_cnt variable is used as indicating array index of struct wid_list.
This patch renames wid_cnt to i that makes more readability.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_cfg_param: change data type of wid_cnt
Chaehyun Lim [Tue, 23 Feb 2016 06:37:59 +0000 (15:37 +0900)]
staging: wilc1000: handle_cfg_param: change data type of wid_cnt

This patch changes data type of wid_cnt from u8 to int.
This variable uses array index of struct wid_list so that it is better
to use int type.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_cfg_param: remove wrapper struct cfg_param_attr
Chaehyun Lim [Tue, 23 Feb 2016 06:37:58 +0000 (15:37 +0900)]
staging: wilc1000: handle_cfg_param: remove wrapper struct cfg_param_attr

This struct just wrap struct cfg_param_val. There is no other member
except struct cfg_param_val.
This patch remove struct cfg_param_attr, then struct cfg_param_val is
renamed to struct cfg_param_attr.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: handle_set_mac_address: fix missing blank line after declaration
Chaehyun Lim [Tue, 23 Feb 2016 06:37:57 +0000 (15:37 +0900)]
staging: wilc1000: handle_set_mac_address: fix missing blank line after declaration

commit 31cc9885e7c7 ("staging: wilc1000: handle_set_mac_address: use kmemdup")
introduces a new checkpatch warning, so this patch fixes it.

WARNING: Missing a blank line after declarations
FILE: drivers/staging/wilc1000/host_interface.c:430:

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: lustre: lov: Use list_for_each_entry instead of list_for_each
Bhumika Goyal [Thu, 25 Feb 2016 17:33:47 +0000 (23:03 +0530)]
Staging: lustre: lov: Use list_for_each_entry instead of list_for_each

Use list_for_each_entry instead of list_for_each and list_entry as it
simplifies the code. Done using coccinelle:

@@
type T,T2;
identifier I1,I2;
expression e1,e2;
iterator name list_for_each_entry;
iterator name list_for_each;
@@

- T *I1;
...
- list_for_each(I1,e1)
+ list_for_each_entry(I2,e1,e2)
{
...when!=T *I1;
- I2=list_entry(I1,T2,e2);
...
}
...when!=I2;

@@
type T,T2,T3;
identifier I1,I2,I3;
expression e1,e2;
@@

- T *I1;
+ T3 *I3;
...
- list_for_each(I1,e1)
+ list_for_each_entry(I3,e1,e2)
{
...when!=T *I1;
- T3 *I3=list_entry(I1,T2,e2);
...
}
...when!=I3;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: lustre: lustre: Remove unnecessary pair of braces {}
Anchal Jain [Thu, 25 Feb 2016 10:18:10 +0000 (15:48 +0530)]
staging: lustre: lustre: Remove unnecessary pair of braces {}

For single statment of if not required
a braces {}.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: lustre: libcfs: Remove comparison with zero
Amitoj Kaur Chawla [Tue, 23 Feb 2016 21:43:22 +0000 (03:13 +0530)]
staging: lustre: libcfs: Remove comparison with zero

Replace comparison with zero with ! operator.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: lustre: libcfs: Remove unnecessary braces
Amitoj Kaur Chawla [Tue, 23 Feb 2016 21:43:55 +0000 (03:13 +0530)]
staging: lustre: libcfs: Remove unnecessary braces

Removed unncessary braces from the if-else block to remove the
following checkpatch.pl warning:
WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: lustre: libcfs: Use swap() in cfs_hash_bd_order()
Amitoj Kaur Chawla [Tue, 23 Feb 2016 21:42:47 +0000 (03:12 +0530)]
staging: lustre: libcfs: Use swap() in cfs_hash_bd_order()

Use swap() function instead of using a temporary variable for swapping
two variables.

The Coccinelle semantic patch used to make this change is as follows:
//<smpl>
@@
type T;
T a,b,c;
@@
- a = b;
- b = c;
- c = a;
+ swap(b, c);
//<smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: proper support of NFS anonymous dentries
Dmitry Eremin [Mon, 15 Feb 2016 00:13:52 +0000 (19:13 -0500)]
staging/lustre: proper support of NFS anonymous dentries

NFS can ask to encode dentries that are not connected to the root.
The fix check for parent is NULL and encode a file handle accordingly.

Reviewed-on: http://review.whamcloud.com/8347
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4231
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Acked-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: lustre: llite: Remove IS_ERR tests
Amitoj Kaur Chawla [Sun, 21 Feb 2016 06:04:48 +0000 (11:34 +0530)]
staging: lustre: llite: Remove IS_ERR tests

ll_iget() has been modified to always return NULL in case of error and
not a ERR_PTR.

Consequently, remove unnecessary IS_ERR tests as now ll_iget()
function can never return a ERR_PTR.

Additionally, reinitialising root and inode to NULL has been removed
since they have already been tested for the same.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused members of struct ll_sb_info
Oleg Drokin [Thu, 25 Feb 2016 03:00:42 +0000 (22:00 -0500)]
staging/lustre: Remove unused members of struct ll_sb_info

ll_orphan_dentry_list and ll_conn_chain are not used
and could be removed.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove commented out obd functions
Oleg Drokin [Thu, 25 Feb 2016 03:00:41 +0000 (22:00 -0500)]
staging/lustre: Remove commented out obd functions

obd_register_page_removal_cb, obd_unregister_page_removal_cb
obd_register_lock_cancel_cb, obd_unregister_lock_cancel_cb

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove stray space before newline in messages
Oleg Drokin [Thu, 25 Feb 2016 03:00:40 +0000 (22:00 -0500)]
staging/lustre: Remove stray space before newline in messages

There were some messages in Lustre that ended with a space followed by
a newline which is pointless, so remove the extra spaces.
Found with checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Fix indentation mistakes
Oleg Drokin [Thu, 25 Feb 2016 03:00:39 +0000 (22:00 -0500)]
staging/lustre: Fix indentation mistakes

none look like bugs or bugs-inducing, mostly just
off by a couple of spaces all around.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ptlrpc: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:38 +0000 (22:00 -0500)]
staging/lustre/ptlrpc: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/osc: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:37 +0000 (22:00 -0500)]
staging/lustre/osc: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/obdecho: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:36 +0000 (22:00 -0500)]
staging/lustre/obdecho: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/obdclass: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:35 +0000 (22:00 -0500)]
staging/lustre/obdclass: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/mgc: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:34 +0000 (22:00 -0500)]
staging/lustre/mgc: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/mdc: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:33 +0000 (22:00 -0500)]
staging/lustre/mdc: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/lov: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:32 +0000 (22:00 -0500)]
staging/lustre/lov: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/lmv: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:31 +0000 (22:00 -0500)]
staging/lustre/lmv: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/llite: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:30 +0000 (22:00 -0500)]
staging/lustre/llite: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:29 +0000 (22:00 -0500)]
staging/lustre/ldlm: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/lclient: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:28 +0000 (22:00 -0500)]
staging/lustre/lclient: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fid: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:27 +0000 (22:00 -0500)]
staging/lustre/fid: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fld: Adjust comments to better conform to coding style
Oleg Drokin [Thu, 25 Feb 2016 03:00:26 +0000 (22:00 -0500)]
staging/lustre/fld: Adjust comments to better conform to coding style

This patch fixes "Block comments use a trailing */ on a separate line"
warnings from checkpatch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/include: Adjust comment style
Oleg Drokin [Thu, 25 Feb 2016 03:00:25 +0000 (22:00 -0500)]
staging/lustre/include: Adjust comment style

This fixes most of the
"Block comments use a trailing */ on a separate line" checkpatch
warnings, also some slight reformats of structures or comments
at places.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Reformat comments and structures in lustre_idl.h
Oleg Drokin [Thu, 25 Feb 2016 03:00:24 +0000 (22:00 -0500)]
staging/lustre: Reformat comments and structures in lustre_idl.h

This file mostly contains various on the wire data and got
significantly mangled in transition.
This patch rectifies the situation somewhat. Also fixes the
comment style for block comments.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused lli_open_count from struct ll_inode_info
Oleg Drokin [Thu, 25 Feb 2016 03:00:23 +0000 (22:00 -0500)]
staging/lustre: Remove unused lli_open_count from struct ll_inode_info

Capabilities code was the only user and it is long gone.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.
Oleg Drokin [Thu, 25 Feb 2016 03:00:22 +0000 (22:00 -0500)]
staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove dead code in ldlm_lock_destroy_internal
Oleg Drokin [Thu, 25 Feb 2016 03:00:21 +0000 (22:00 -0500)]
staging/lustre: Remove dead code in ldlm_lock_destroy_internal

This code has been commented out since end of 2012, so it's
clearly not needed here.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove last_rcvd-file related data
Oleg Drokin [Thu, 25 Feb 2016 03:00:20 +0000 (22:00 -0500)]
staging/lustre: Remove last_rcvd-file related data

last_rcvd (last received) is a special server-side file on the
Lustre FS that stores information about server filesystem and
also list of connected clients and their state. There's no
point in having any of tha ton the client, though.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove server data from struct obd_export
Oleg Drokin [Thu, 25 Feb 2016 03:00:19 +0000 (22:00 -0500)]
staging/lustre: Remove server data from struct obd_export

Despite it's name struct obd_export could exist on the client too
(used for reverse exports), but all the actual server bits
are not needed there, so could be dropped. This is mostly
various target-related stuff.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove index file transfer structures
Oleg Drokin [Thu, 25 Feb 2016 03:00:18 +0000 (22:00 -0500)]
staging/lustre: Remove index file transfer structures

struct idx_info, struct lu_idxpage, lustre_swab_idx_info,
request formats and related defines are all unused and could
only happen for between-servers communications, so remove them
from the client code.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: FMODE_READ and FMODE_WRITE are always defined in the kernel
Oleg Drokin [Thu, 25 Feb 2016 03:00:17 +0000 (22:00 -0500)]
staging/lustre: FMODE_READ and FMODE_WRITE are always defined in the kernel

So no need to see if they are.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: S_DIRSYNC is always defined in kernel
Oleg Drokin [Thu, 25 Feb 2016 03:00:16 +0000 (22:00 -0500)]
staging/lustre: S_DIRSYNC is always defined in kernel

No need to check for it.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove lquota_glb_rec, lquota_slv_rec and lquota_acct_rec
Oleg Drokin [Thu, 25 Feb 2016 03:00:15 +0000 (22:00 -0500)]
staging/lustre: Remove lquota_glb_rec, lquota_slv_rec and lquota_acct_rec

These server-only structures and some supporting defines are unused
on the client.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused struct quota_body
Oleg Drokin [Thu, 25 Feb 2016 03:00:14 +0000 (22:00 -0500)]
staging/lustre: Remove unused struct quota_body

It's only used for communications between servers.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove duplicated quota defines
Oleg Drokin [Thu, 25 Feb 2016 03:00:13 +0000 (22:00 -0500)]
staging/lustre: Remove duplicated quota defines

QUOTABLOCK_BITS, QUOTABLOCK_SIZE and toqb are only used on the server
and are copied from kernel code anyway.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove *_CONNECT_SUPPORTED defines
Oleg Drokin [Thu, 25 Feb 2016 03:00:12 +0000 (22:00 -0500)]
staging/lustre: Remove *_CONNECT_SUPPORTED defines

These defines are only used on the servers to determine
what connect flags corresponding servers support:
MDT_CONNECT_SUPPORTED
OST_CONNECT_SUPPORTED
MGS_CONNECT_SUPPORTED
ECHO_CONNECT_SUPPORTED

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove server-only values from enum lu_dirent_attrs
Oleg Drokin [Thu, 25 Feb 2016 03:00:11 +0000 (22:00 -0500)]
staging/lustre: Remove server-only values from enum lu_dirent_attrs

These values cannot be seen on the client so we probably should
not even be aware of them on the client.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove FSF mailing address from GPL notices
Oleg Drokin [Thu, 25 Feb 2016 03:00:10 +0000 (22:00 -0500)]
staging/lustre: Remove FSF mailing address from GPL notices

This patch removes remaining several places that still had that
extra paragraph included in Lustre code.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove server-side changelog defines
Oleg Drokin [Thu, 25 Feb 2016 03:00:09 +0000 (22:00 -0500)]
staging/lustre: Remove server-side changelog defines

CHANGELOG_MAGIC, CHANGELOG_MINMASK, CHANGELOG_ALLMASK,
CHANGELOG_DEFMASK and CHANGELOG_USER_PREFIX are all unused
on the client.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of C99 comments in lustre_idl.h
Oleg Drokin [Thu, 25 Feb 2016 03:00:08 +0000 (22:00 -0500)]
staging/lustre: Get rid of C99 comments in lustre_idl.h

lustre_idl.h contains various protocol data. In order to avoid
reusal of values that might have meant something else in the past,
the old no longer used values are commented out, convert the
comments into regular comments from C99 where appropriate.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove lustre_build_version.h
Oleg Drokin [Thu, 25 Feb 2016 03:00:07 +0000 (22:00 -0500)]
staging/lustre: Remove lustre_build_version.h

of the two macroses is contained the LUSTRE_RELEASE was unused and
BUILD_VERSION is too generically named and was replaced with
LUSTRE_VERSION_STRING with all the users (provided by lustre_ver.h)

With in-kernel client the build version should be combined with
kernel build information anyway.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/llite: Get rid of se_stat_t typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:06 +0000 (22:00 -0500)]
staging/lustre/llite: Get rid of se_stat_t typedef

Replace it with enum se_stat

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of ldlm_cancel_flags_t typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:05 +0000 (22:00 -0500)]
staging/lustre: Get rid of ldlm_cancel_flags_t typedef

Replace it with enum ldlm_cancel_flags

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of ldlm_ns_type_t typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:04 +0000 (22:00 -0500)]
staging/lustre: Get rid of ldlm_ns_type_t typedef

Replace it with enum ldlm_ns_type

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove ldlm_appetite_t typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:03 +0000 (22:00 -0500)]
staging/lustre: Remove ldlm_appetite_t typedef

Replace it with enum ldlm_appetite

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of ldlm_error_t typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:02 +0000 (22:00 -0500)]
staging/lustre: Get rid of ldlm_error_t typedef

Replace it with enum ldlm_error

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of lustre_quota_version typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:01 +0000 (22:00 -0500)]
staging/lustre: Get rid of lustre_quota_version typedef

Does not appear to be used anywhere.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of lustre_fid typedef
Oleg Drokin [Thu, 25 Feb 2016 03:00:00 +0000 (22:00 -0500)]
staging/lustre: Get rid of lustre_fid typedef

Replace it with struct lu_fid

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of object update code
Oleg Drokin [Thu, 25 Feb 2016 02:59:59 +0000 (21:59 -0500)]
staging/lustre: Get rid of object update code

Object update was originally planned to be used for cross-server
updates, so nothign to do with the client. The idea was
later significantly reworked anyway so even wire structs should
not be retained.

This gets rid of update_cmd_t, UPDATE and UPDATE_REPLY rpc and
corresponding subcommands, swabbig logic and such.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of sec_cmd_t typedef
Oleg Drokin [Thu, 25 Feb 2016 02:59:58 +0000 (21:59 -0500)]
staging/lustre: Get rid of sec_cmd_t typedef

Replace with enum sec_cmd

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Get rid of llog_op_type typedef
Oleg Drokin [Thu, 25 Feb 2016 02:59:57 +0000 (21:59 -0500)]
staging/lustre: Get rid of llog_op_type typedef

Replace with enum llog_op_type

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>