Skip to content

loop: sync filesystem cache before getting file size in get_size()#96

Closed
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/989257=>linus-master
Closed

loop: sync filesystem cache before getting file size in get_size()#96
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/989257=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Aug 8, 2025

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

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 8, 2025

Upstream branch: 6e64f45
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 8, 2025

Upstream branch: bec0771
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from e266266 to dce081c Compare August 8, 2025 04:10
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from bb733b3 to 40fbfea Compare August 8, 2025 04:21
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 8, 2025

Upstream branch: 3781648
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from dce081c to 0e747a9 Compare August 8, 2025 04:25
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 40fbfea to 37dce65 Compare August 9, 2025 05:21
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: 0227b49
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 0e747a9 to 787c50f Compare August 9, 2025 05:25
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 37dce65 to 4c26e9a Compare August 9, 2025 05:49
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: 71a0760
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 787c50f to 42e119a Compare August 9, 2025 05:53
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4c26e9a to 1356209 Compare August 9, 2025 06:05
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: 2988dfe
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 42e119a to bb5c24e Compare August 9, 2025 06:09
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 1356209 to ae9bce3 Compare August 9, 2025 06:21
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: c30a135
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from bb5c24e to f1c8f2b Compare August 9, 2025 06:25
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ae9bce3 to e263d6e Compare August 9, 2025 15:26
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: 561c803
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from f1c8f2b to 6930308 Compare August 9, 2025 15:30
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e263d6e to 77110f5 Compare August 10, 2025 05:58
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: b96ddbc
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 6930308 to f31bc4f Compare August 10, 2025 06:03
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 77110f5 to a2e0474 Compare August 10, 2025 06:39
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: 2b38afc
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 1a46df6 to 404c2ca Compare August 12, 2025 16:09
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 0e39a73
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 2b80dec to 33baaec Compare August 12, 2025 16:15
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 404c2ca to b39b4d5 Compare August 12, 2025 19:19
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 8742b2d
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 33baaec to c00fdcf Compare August 12, 2025 19:26
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from b39b4d5 to d7e410a Compare August 13, 2025 15:44
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: 91325f3
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from c00fdcf to 242749a Compare August 13, 2025 15:50
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from d7e410a to ee33a84 Compare August 13, 2025 17:55
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: 3a4a036
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 242749a to 50f1781 Compare August 13, 2025 18:02
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ee33a84 to 44c61ab Compare August 13, 2025 19:02
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: dfc0f63
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 50f1781 to c182f4f Compare August 13, 2025 19:09
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 44c61ab to 89d0c23 Compare August 14, 2025 03:34
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 14, 2025

Upstream branch: 0cc5352
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from c182f4f to 6387baf Compare August 14, 2025 03:41
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 89d0c23 to 1cd470e Compare August 14, 2025 15:49
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 14, 2025

Upstream branch: 24ea63e
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 6387baf to 05a007c Compare August 14, 2025 15:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 1cd470e to 38c66a9 Compare August 15, 2025 02:29
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 15, 2025

Upstream branch: d7ee5bd
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 05a007c to 4bf3378 Compare August 15, 2025 02:37
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 38c66a9 to 593e738 Compare August 20, 2025 11:56
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>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 20, 2025

Upstream branch: b19a97d
series: https://patchwork.kernel.org/project/linux-block/list/?series=989257
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/989257=>linus-master branch from 4bf3378 to 6a185dd Compare August 20, 2025 12:08
@kawasaki kawasaki closed this Aug 23, 2025
@blktests-ci blktests-ci Bot deleted the series/989257=>linus-master branch August 31, 2025 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant