Changes since last update:
- Fix some uninitialized variable errors - Fix an incorrect check in metadata verifiers -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAltYpkoACgkQ+H93GTRK tOsMAA//Tyt2rjGGrvtPUiI9xhDDbYM+Eds19IWhye9LyNQCHXdmrCicsBvoEyCC 5XSAT5lofeLNIbiTS88aC0b4sr2LLban6YsTBHGTlRxUTrnCSpCCDIgXJswxLjmT jivIumvKL3sxgmXubwe6gnjoLCNGIy3JrdCu4vFf6JGWAj6U5HyZ5hjtj74nuPtg w6BMEptJIOmQwGzSjQY76dQ5ekliVuOtYISY6gRAfVPVvwURgIzZdQPi4qV5Kw/d n2nA6rvMBUcMUSVvXWS1ryOWsy4HrB9LXzbr5Kb0NgaVKnAqSCYGIGMJSEsiO/7Y P83Doo6N8fYh8QEUOLqJ76XTkkrzoo3fvo7IZXUGMERXx90UliEAI/k6hWy6awtT cCQatAcOp+8r5PvMJ9ZIivAwDId06PwpuDntOATIamGkNEo4vo0LO189fQP+i8RD LIbEcLcGOHVjjTZgGqJCfDWVPiFtG8ZdZp9bvmpW9aREzMGl/tXnvI2QsSwZu+lU 87efBqztYGm4U4D5grdV/ynbT1E4E9ggtI2pVHG2ipJnZ+UeTiOCw68lDcUDT0JA lU2fPUKzUR3v+U6s26AJFKcX2HCG4G75cJozBuH82xcPnUT0m3PMde0ZhFzVnvg4 w8T+bIS0Q/f310SSAitu1qfG5cx2f6I5j107jhldvcibRmqEZLE= =Ovtv -----END PGP SIGNATURE----- Merge tag 'xfs-4.18-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux Pull xfs fixes from Darrick Wong: - Fix some uninitialized variable errors - Fix an incorrect check in metadata verifiers * tag 'xfs-4.18-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: properly handle free inodes in extent hint validators xfs: Initialize variables in xfs_alloc_get_rec before using them
This commit is contained in:
commit
f636d300cd
@ -223,12 +223,13 @@ xfs_alloc_get_rec(
|
||||
error = xfs_btree_get_rec(cur, &rec, stat);
|
||||
if (error || !(*stat))
|
||||
return error;
|
||||
if (rec->alloc.ar_blockcount == 0)
|
||||
goto out_bad_rec;
|
||||
|
||||
*bno = be32_to_cpu(rec->alloc.ar_startblock);
|
||||
*len = be32_to_cpu(rec->alloc.ar_blockcount);
|
||||
|
||||
if (*len == 0)
|
||||
goto out_bad_rec;
|
||||
|
||||
/* check for valid extent range, including overflow */
|
||||
if (!xfs_verify_agbno(mp, agno, *bno))
|
||||
goto out_bad_rec;
|
||||
|
@ -731,7 +731,8 @@ xfs_inode_validate_extsize(
|
||||
if ((hint_flag || inherit_flag) && extsize == 0)
|
||||
return __this_address;
|
||||
|
||||
if (!(hint_flag || inherit_flag) && extsize != 0)
|
||||
/* free inodes get flags set to zero but extsize remains */
|
||||
if (mode && !(hint_flag || inherit_flag) && extsize != 0)
|
||||
return __this_address;
|
||||
|
||||
if (extsize_bytes % blocksize_bytes)
|
||||
@ -777,7 +778,8 @@ xfs_inode_validate_cowextsize(
|
||||
if (hint_flag && cowextsize == 0)
|
||||
return __this_address;
|
||||
|
||||
if (!hint_flag && cowextsize != 0)
|
||||
/* free inodes get flags set to zero but cowextsize remains */
|
||||
if (mode && !hint_flag && cowextsize != 0)
|
||||
return __this_address;
|
||||
|
||||
if (hint_flag && rt_flag)
|
||||
|
Loading…
Reference in New Issue
Block a user