Commit f41753f
committed
ext4: fold quota accounting into ext4_xattr_inode_lookup_create()
JIRA: https://issues.redhat.com/browse/RHEL-48282
Tested: With xfstests
CVE: CVE-2024-40972
When allocating EA inode, quota accounting is done just before
ext4_xattr_inode_lookup_create(). Logically these two operations belong
together so just fold quota accounting into
ext4_xattr_inode_lookup_create(). We also make
ext4_xattr_inode_lookup_create() return the looked up / created inode to
convert the function to a more standard calling convention.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240209112107.10585-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 8208c41)
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>1 parent 8dd1ed2 commit f41753f
1 file changed
+24
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
| 1569 | + | |
| 1570 | + | |
1572 | 1571 | | |
1573 | 1572 | | |
1574 | 1573 | | |
1575 | 1574 | | |
1576 | 1575 | | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1577 | 1581 | | |
1578 | 1582 | | |
1579 | 1583 | | |
1580 | 1584 | | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
1588 | 1588 | | |
1589 | 1589 | | |
1590 | 1590 | | |
1591 | 1591 | | |
1592 | | - | |
1593 | | - | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
1594 | 1596 | | |
1595 | 1597 | | |
1596 | 1598 | | |
1597 | 1599 | | |
1598 | 1600 | | |
1599 | | - | |
1600 | | - | |
| 1601 | + | |
1601 | 1602 | | |
1602 | 1603 | | |
1603 | 1604 | | |
1604 | 1605 | | |
1605 | 1606 | | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1609 | 1612 | | |
1610 | 1613 | | |
1611 | 1614 | | |
| |||
1713 | 1716 | | |
1714 | 1717 | | |
1715 | 1718 | | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1724 | 1723 | | |
1725 | | - | |
1726 | 1724 | | |
1727 | 1725 | | |
1728 | 1726 | | |
| |||
0 commit comments