diff options
| author | Qu Wenruo <[email protected]> | 2024-10-09 05:51:07 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-11-11 13:34:18 +0000 |
| commit | 0f7120266584490616f031873e7148495d77dd68 (patch) | |
| tree | 7ed79bd123018ed2979c86df4d4258595c13f594 /fs/btrfs/compression.c | |
| parent | btrfs: unify to use writer locks for subpage locking (diff) | |
| download | kernel-0f7120266584490616f031873e7148495d77dd68.tar.gz kernel-0f7120266584490616f031873e7148495d77dd68.zip | |
btrfs: rename btrfs_folio_(set|start|end)_writer_lock()
Since there is no user of reader locks, rename the writer locks into a
more generic name, by removing the "_writer" part from the name.
And also rename btrfs_subpage::writer into btrfs_subpage::locked.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
| -rw-r--r-- | fs/btrfs/compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index e51d55bd1a29..21d73ea594a9 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -545,7 +545,7 @@ static noinline int add_ra_bio_pages(struct inode *inode, * subpage::readers and to unlock the page. */ if (fs_info->sectorsize < PAGE_SIZE) - btrfs_folio_set_writer_lock(fs_info, folio, cur, add_size); + btrfs_folio_set_lock(fs_info, folio, cur, add_size); folio_put(folio); cur += add_size; } |
