Skip to content

Commit 13778af

Browse files
cmaiolinoLinuxMinion
authored andcommitted
xfs: fix max_retries _show and _store functions
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]> (cherry picked from commit ff97f23) Orabug: 26130728 Signed-off-by: Kirtikar Kashyap <[email protected]> Reviewed-by: Jack Vogel <[email protected]>
1 parent 07cc6bb commit 13778af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/xfs/xfs_sysfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ max_retries_show(
305305
int retries;
306306
struct xfs_error_cfg *cfg = to_error_cfg(kobject);
307307

308-
if (cfg->retry_timeout == XFS_ERR_RETRY_FOREVER)
308+
if (cfg->max_retries == XFS_ERR_RETRY_FOREVER)
309309
retries = -1;
310310
else
311311
retries = cfg->max_retries;
@@ -331,7 +331,7 @@ max_retries_store(
331331
return -EINVAL;
332332

333333
if (val == -1)
334-
cfg->retry_timeout = XFS_ERR_RETRY_FOREVER;
334+
cfg->max_retries = XFS_ERR_RETRY_FOREVER;
335335
else
336336
cfg->max_retries = val;
337337
return count;

0 commit comments

Comments
 (0)