loop: sync filesystem cache before getting file size in get_size()#96
loop: sync filesystem cache before getting file size in get_size()#96blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
Conversation
|
Upstream branch: 6e64f45 |
de83e48 to
bb733b3
Compare
|
Upstream branch: bec0771 |
e266266 to
dce081c
Compare
bb733b3 to
40fbfea
Compare
|
Upstream branch: 3781648 |
dce081c to
0e747a9
Compare
40fbfea to
37dce65
Compare
|
Upstream branch: 0227b49 |
0e747a9 to
787c50f
Compare
37dce65 to
4c26e9a
Compare
|
Upstream branch: 71a0760 |
787c50f to
42e119a
Compare
4c26e9a to
1356209
Compare
|
Upstream branch: 2988dfe |
42e119a to
bb5c24e
Compare
1356209 to
ae9bce3
Compare
|
Upstream branch: c30a135 |
bb5c24e to
f1c8f2b
Compare
ae9bce3 to
e263d6e
Compare
|
Upstream branch: 561c803 |
f1c8f2b to
6930308
Compare
e263d6e to
77110f5
Compare
|
Upstream branch: b96ddbc |
6930308 to
f31bc4f
Compare
77110f5 to
a2e0474
Compare
|
Upstream branch: 2b38afc |
1a46df6 to
404c2ca
Compare
|
Upstream branch: 0e39a73 |
2b80dec to
33baaec
Compare
404c2ca to
b39b4d5
Compare
|
Upstream branch: 8742b2d |
33baaec to
c00fdcf
Compare
b39b4d5 to
d7e410a
Compare
|
Upstream branch: 91325f3 |
c00fdcf to
242749a
Compare
d7e410a to
ee33a84
Compare
|
Upstream branch: 3a4a036 |
242749a to
50f1781
Compare
ee33a84 to
44c61ab
Compare
|
Upstream branch: dfc0f63 |
50f1781 to
c182f4f
Compare
44c61ab to
89d0c23
Compare
|
Upstream branch: 0cc5352 |
c182f4f to
6387baf
Compare
89d0c23 to
1cd470e
Compare
|
Upstream branch: 24ea63e |
6387baf to
05a007c
Compare
1cd470e to
38c66a9
Compare
|
Upstream branch: d7ee5bd |
05a007c to
4bf3378
Compare
38c66a9 to
593e738
Compare
The get_size() function now uses vfs_getattr_nosec() with AT_STATX_SYNC_AS_STAT to ensure filesystem cache is synchronized before retrieving file size. This provides more accurate size information, especially when: - The backing file size has been changed by another process - The file is on a network filesystem (NFS, CIFS, etc.) - The file is being modified concurrently - The most accurate size is needed for loop device setup The implementation gracefully falls back to i_size_read() if vfs_getattr_nosec() fails, maintaining backward compatibility. Signed-off-by: Rajeev Mishra <rajeevm@hpe.com>
|
Upstream branch: b19a97d |
4bf3378 to
6a185dd
Compare
Pull request for series with
subject: loop: sync filesystem cache before getting file size in get_size()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=989257