diff options
| author | David Sterba <[email protected]> | 2025-06-06 17:50:14 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 21:53:31 +0000 |
| commit | f1f22dfbea2e834aa81eb8511e2f96583390ef82 (patch) | |
| tree | 77c2f19ef0f15819522eb0f32c391c2296bdf557 | |
| parent | btrfs: use btrfs_is_data_reloc_root() where not done yet (diff) | |
| download | kernel-f1f22dfbea2e834aa81eb8511e2f96583390ef82.tar.gz kernel-f1f22dfbea2e834aa81eb8511e2f96583390ef82.zip | |
btrfs: use btrfs_root_id() where not done yet
A few more remaining cases where we can use the helper.
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: David Sterba <[email protected]>
| -rw-r--r-- | fs/btrfs/extent-tree.c | 2 | ||||
| -rw-r--r-- | fs/btrfs/extent_io.c | 2 | ||||
| -rw-r--r-- | fs/btrfs/inode.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 46d4963a8241..f1ac6a8dd9f4 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -5554,7 +5554,7 @@ again: goto again; } - exists = btrfs_find_delayed_tree_ref(head, root->root_key.objectid, parent); + exists = btrfs_find_delayed_tree_ref(head, btrfs_root_id(root), parent); mutex_unlock(&head->mutex); out: spin_unlock(&delayed_refs->lock); diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index ac639d50706a..f869309c8aa1 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1704,7 +1704,7 @@ static int extent_writepage(struct folio *folio, struct btrfs_bio_ctrl *bio_ctrl WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)); btrfs_err_rl(fs_info, "root %lld ino %llu folio %llu is marked dirty without notifying the fs", - inode->root->root_key.objectid, + btrfs_root_id(inode->root), btrfs_ino(inode), folio_pos(folio)); ret = -EUCLEAN; goto done; diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index c2accf631f34..cc176950e719 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2881,7 +2881,7 @@ int btrfs_writepage_cow_fixup(struct folio *folio) DEBUG_WARN(); btrfs_err_rl(fs_info, "root %lld ino %llu folio %llu is marked dirty without notifying the fs", - BTRFS_I(inode)->root->root_key.objectid, + btrfs_root_id(BTRFS_I(inode)->root), btrfs_ino(BTRFS_I(inode)), folio_pos(folio)); return -EUCLEAN; @@ -8023,7 +8023,7 @@ static int btrfs_getattr(struct mnt_idmap *idmap, generic_fillattr(idmap, request_mask, inode, stat); stat->dev = BTRFS_I(inode)->root->anon_dev; - stat->subvol = BTRFS_I(inode)->root->root_key.objectid; + stat->subvol = btrfs_root_id(BTRFS_I(inode)->root); stat->result_mask |= STATX_SUBVOL; spin_lock(&BTRFS_I(inode)->lock); |
