aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2021-10-14 13:11:01 -0400
committerDavid Sterba <[email protected]>2021-10-26 19:08:08 +0200
commit54fde91f52f515e0b1514f0f0fa146e87a672227 (patch)
treefd78049f391bcaa363c13a292df11ca4977a875b /fs/btrfs/disk-io.c
parente60feb445fce9e51c1558a6aa7faf9dd5ded533b (diff)
btrfs: update device path inode time instead of bd_inode
Christoph pointed out that I'm updating bdev->bd_inode for the device time when we remove block devices from a btrfs file system, however this isn't actually exposed to anything. The inode we want to update is the one that's associated with the path to the device, usually on devtmpfs, so that blkid notices the difference. We still don't want to do the blkdev_open, so use kern_path() to get the path to the given device and do the update time on that inode. Fixes: 8f96a5bfa150 ("btrfs: update the bdev time directly when closing") Reported-by: Christoph Hellwig <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions