summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorIoannis Angelakopoulos <iangelak@fb.com>2022-07-26 01:11:57 +0300
committerDavid Sterba <dsterba@suse.com>2022-09-26 13:27:53 +0300
commit9d7464c87b159bbf763c24faeb7a2dcaac96e4a1 (patch)
tree16834a92569db4a5eed8d692bc6c925476e015b8 /fs/btrfs/dev-replace.c
parent8b53779eaa98b55f4cccadd4d12b3233e9633140 (diff)
downloadlinux-9d7464c87b159bbf763c24faeb7a2dcaac96e4a1.tar.xz
btrfs: change the lockdep class of free space inode's invalidate_lock
Reinitialize the class of the lockdep map for struct inode's mapping->invalidate_lock in load_free_space_cache() function in fs/btrfs/free-space-cache.c. This will prevent lockdep from producing false positives related to execution paths that make use of free space inodes and paths that make use of normal inodes. Specifically, with this change lockdep will create separate lock dependencies that include the invalidate_lock, in the case that free space inodes are used and in the case that normal inodes are used. The lockdep class for this lock was first initialized in inode_init_always() in fs/inode.c. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Ioannis Angelakopoulos <iangelak@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions