diff options
author | Ritesh Harjani <[email protected]> | 2020-09-04 14:46:53 +0530 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2020-10-18 10:35:54 -0400 |
commit | 0e6895ba00b7be45f3ab0d2107dda3ef1245f5b4 (patch) | |
tree | 94d1bb08ffeb0dd92c6d82f7fe319d9d14487bd9 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | a1b8638ba1320e6684aa98233c15255eb803fac7 (diff) |
ext4: implement swap_activate aops using iomap
After moving ext4's bmap to iomap interface, swapon functionality
on files created using fallocate (which creates unwritten extents) are
failing. This is since iomap_bmap interface returns 0 for unwritten
extents and thus generic_swapfile_activate considers this as holes
and hence bail out with below kernel msg :-
[340.915835] swapon: swapfile has holes
To fix this we need to implement ->swap_activate aops in ext4
which will use ext4_iomap_report_ops. Since we only need to return
the list of extents so ext4_iomap_report_ops should be enough.
Cc: [email protected]
Reported-by: Yuxuan Shui <[email protected]>
Fixes: ac58e4fb03f ("ext4: move ext4 bmap to use iomap infrastructure")
Signed-off-by: Ritesh Harjani <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions