projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
721a0ed
)
xfs: fix max_retries _show and _store functions
author
Carlos Maiolino
<
[email protected]
>
Wed, 4 Jan 2017 04:34:17 +0000
(20:34 -0800)
committer
Darrick J. Wong
<
[email protected]
>
Wed, 4 Jan 2017 04:34:17 +0000
(20:34 -0800)
max_retries _show and _store functions should test against cfg->max_retries,
not cfg->retry_timeout
Signed-off-by: Carlos Maiolino <
[email protected]
>
Reviewed-by: Eric Sandeen <
[email protected]
>
Signed-off-by: Darrick J. Wong <
[email protected]
>
fs/xfs/xfs_sysfs.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_sysfs.c
b/fs/xfs/xfs_sysfs.c
index 276d3023d60f8201b635ae1f0c2ccbf26aac74fd..de6195e3891096316e51fd4efcd49ff091024a4a 100644
(file)
--- a/
fs/xfs/xfs_sysfs.c
+++ b/
fs/xfs/xfs_sysfs.c
@@
-396,7
+396,7
@@
max_retries_show(
int retries;
struct xfs_error_cfg *cfg = to_error_cfg(kobject);
- if (cfg->
retry_timeout
== XFS_ERR_RETRY_FOREVER)
+ if (cfg->
max_retries
== XFS_ERR_RETRY_FOREVER)
retries = -1;
else
retries = cfg->max_retries;
@@
-422,7
+422,7
@@
max_retries_store(
return -EINVAL;
if (val == -1)
- cfg->
retry_timeout
= XFS_ERR_RETRY_FOREVER;
+ cfg->
max_retries
= XFS_ERR_RETRY_FOREVER;
else
cfg->max_retries = val;
return count;