Repository navigation
Commit 362eca7
committed
ext4: fix inline data updates with checksums enabled
The inline data code was updating the raw inode directly; this is
problematic since if metadata checksums are enabled,
ext4_mark_inode_dirty() must be called to update the inode's checksum.
In addition, the jbd2 layer requires that get_write_access() be called
before the metadata buffer is modified. Fix both of these problems.
https://bugzilla.kernel.org/show_bug.cgi?id=200443
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org1 parent 2dca60d commit 362eca7
2 files changed
Lines changed: 18 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
685 | 689 | | |
686 | 690 | | |
687 | 691 | | |
| |||
710 | 714 | | |
711 | 715 | | |
712 | 716 | | |
713 | | - | |
| 717 | + | |
714 | 718 | | |
715 | 719 | | |
716 | 720 | | |
| |||
752 | 756 | | |
753 | 757 | | |
754 | 758 | | |
| 759 | + | |
755 | 760 | | |
756 | 761 | | |
757 | 762 | | |
| |||
898 | 903 | | |
899 | 904 | | |
900 | 905 | | |
901 | | - | |
902 | 906 | | |
903 | 907 | | |
904 | 908 | | |
| |||
916 | 920 | | |
917 | 921 | | |
918 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
919 | 926 | | |
920 | 927 | | |
921 | 928 | | |
| |||
936 | 943 | | |
937 | 944 | | |
938 | 945 | | |
939 | | - | |
940 | 946 | | |
941 | 947 | | |
942 | 948 | | |
| |||
954 | 960 | | |
955 | 961 | | |
956 | 962 | | |
957 | | - | |
| 963 | + | |
958 | 964 | | |
959 | | - | |
960 | | - | |
961 | 965 | | |
962 | 966 | | |
963 | 967 | | |
| |||
967 | 971 | | |
968 | 972 | | |
969 | 973 | | |
970 | | - | |
971 | | - | |
| 974 | + | |
972 | 975 | | |
973 | 976 | | |
974 | 977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
| 1392 | + | |
1392 | 1393 | | |
1393 | 1394 | | |
1394 | | - | |
| 1395 | + | |
1395 | 1396 | | |
1396 | 1397 | | |
1397 | 1398 | | |
| |||
1419 | 1420 | | |
1420 | 1421 | | |
1421 | 1422 | | |
1422 | | - | |
| 1423 | + | |
1423 | 1424 | | |
1424 | 1425 | | |
1425 | 1426 | | |
| |||
1493 | 1494 | | |
1494 | 1495 | | |
1495 | 1496 | | |
| 1497 | + | |
1496 | 1498 | | |
1497 | 1499 | | |
1498 | 1500 | | |
1499 | 1501 | | |
1500 | 1502 | | |
1501 | 1503 | | |
1502 | 1504 | | |
1503 | | - | |
| 1505 | + | |
1504 | 1506 | | |
1505 | 1507 | | |
1506 | 1508 | | |
| |||
1531 | 1533 | | |
1532 | 1534 | | |
1533 | 1535 | | |
1534 | | - | |
| 1536 | + | |
1535 | 1537 | | |
1536 | 1538 | | |
1537 | 1539 | | |
| |||
2028 | 2030 | | |
2029 | 2031 | | |
2030 | 2032 | | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
| 2033 | + | |
2036 | 2034 | | |
2037 | 2035 | | |
2038 | 2036 | | |
| |||
0 commit comments