Commit 0236799
xfs: refactor xfs_mount_zones
xfs_mount_zones has grown a bit too big and unorganized. Split the
zone reporting loop into a separate helper, hiding the rtg variable
there. Print the mount message last, and also keep the VFS writeback
chunk size last instead of in the middle of the logic to calculate
the free/available blocks.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>1 parent 553a13e commit 0236799
1 file changed
Lines changed: 34 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1230 | 1230 | | |
1231 | 1231 | | |
1232 | 1232 | | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1233 | 1256 | | |
1234 | 1257 | | |
1235 | 1258 | | |
| |||
1238 | 1261 | | |
1239 | 1262 | | |
1240 | 1263 | | |
1241 | | - | |
1242 | 1264 | | |
1243 | 1265 | | |
1244 | 1266 | | |
| |||
1268 | 1290 | | |
1269 | 1291 | | |
1270 | 1292 | | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1274 | 1300 | | |
1275 | 1301 | | |
1276 | 1302 | | |
| |||
1296 | 1322 | | |
1297 | 1323 | | |
1298 | 1324 | | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | 1325 | | |
1316 | 1326 | | |
1317 | 1327 | | |
| |||
1322 | 1332 | | |
1323 | 1333 | | |
1324 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1325 | 1339 | | |
1326 | 1340 | | |
1327 | 1341 | | |
| |||
0 commit comments