Commit 6980d29
zonefs: fix to update .i_wr_refcnt correctly in zonefs_open_zone()
In zonefs_open_zone(), if opened zone count is larger than
.s_max_open_zones threshold, we missed to recover .i_wr_refcnt,
fix this.
Fixes: b5c00e9 ("zonefs: open/close zone on file open/close")
Cc: <stable@vger.kernel.org>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>1 parent ebfd68c commit 6980d29
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
| 1043 | + | |
1046 | 1044 | | |
1047 | 1045 | | |
1048 | 1046 | | |
| |||
1052 | 1050 | | |
1053 | 1051 | | |
1054 | 1052 | | |
1055 | | - | |
1056 | 1053 | | |
1057 | 1054 | | |
1058 | 1055 | | |
1059 | 1056 | | |
1060 | 1057 | | |
1061 | 1058 | | |
1062 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
1063 | 1062 | | |
1064 | 1063 | | |
1065 | 1064 | | |
| |||
0 commit comments