summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-08-06 16:12:32 +0800
committerDavid Sterba <dsterba@suse.com>2021-10-26 19:04:39 +0200
commit1ccc2e8a8648b10b4f198793f78f2521e96f6d36 (patch)
treeb1e9564a20b4a5224d30f8a10032ec5af2811d3f /tools/perf/scripts/python/libxed.py
parenta09f23c3554eec3451ce5d8891729b29b089e59f (diff)
downloadlinux-1ccc2e8a8648b10b4f198793f78f2521e96f6d36.tar.gz
linux-1ccc2e8a8648b10b4f198793f78f2521e96f6d36.zip
btrfs: defrag: pass file_ra_state instead of file to btrfs_defrag_file()
Currently btrfs_defrag_file() accepts both "struct inode" and "struct file" as parameter. We can easily grab "struct inode" from "struct file" using file_inode() helper. The reason why we need "struct file" is just to re-use its f_ra. Change this to pass "struct file_ra_state" parameter, so that it's more clear what we really want. Since we're here, also add some comments on the function btrfs_defrag_file(). Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions