Commit 295fc4a
ceph: fix updating i_truncate_pagecache_size for fscrypt
When fscrypt is enabled we will align the truncate size up to the
CEPH_FSCRYPT_BLOCK_SIZE always, so if we truncate the size in the
same block more than once, the latter ones will be skipped being
invalidated from the page caches.
This will force invalidating the page caches by using the smaller
size than the real file size.
At the same time add more debug log and fix the debug log for
truncate code.
Link: https://tracker.ceph.com/issues/58834
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 1464de9 commit 295fc4a
2 files changed
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3950 | 3950 | | |
3951 | 3951 | | |
3952 | 3952 | | |
3953 | | - | |
3954 | | - | |
| 3953 | + | |
| 3954 | + | |
3955 | 3955 | | |
3956 | 3956 | | |
3957 | 3957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
795 | 802 | | |
796 | | - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
797 | 807 | | |
798 | | - | |
| 808 | + | |
799 | 809 | | |
| 810 | + | |
800 | 811 | | |
801 | 812 | | |
802 | 813 | | |
| |||
2155 | 2166 | | |
2156 | 2167 | | |
2157 | 2168 | | |
2158 | | - | |
| 2169 | + | |
2159 | 2170 | | |
2160 | 2171 | | |
2161 | 2172 | | |
| |||
2167 | 2178 | | |
2168 | 2179 | | |
2169 | 2180 | | |
2170 | | - | |
2171 | | - | |
| 2181 | + | |
2172 | 2182 | | |
2173 | 2183 | | |
2174 | 2184 | | |
| |||
2179 | 2189 | | |
2180 | 2190 | | |
2181 | 2191 | | |
2182 | | - | |
| 2192 | + | |
2183 | 2193 | | |
2184 | 2194 | | |
2185 | 2195 | | |
| |||
2371 | 2381 | | |
2372 | 2382 | | |
2373 | 2383 | | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
2374 | 2387 | | |
2375 | 2388 | | |
2376 | 2389 | | |
| |||
0 commit comments