summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster
diff options
context:
space:
mode:
authorYuanheng Zhang <yuanhengzhang1214@gmail.com>2023-08-28 07:17:41 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-10-04 19:41:56 +0200
commit00adf323b2e7c973a7129b906c381ed377aec1a5 (patch)
tree596b97d7c420377ca9c523dd7b1a043ed69ea37c /fs/ocfs2/cluster
parentcompiler.h: unify __UNIQUE_ID (diff)
downloadlinux-00adf323b2e7c973a7129b906c381ed377aec1a5.tar.xz
linux-00adf323b2e7c973a7129b906c381ed377aec1a5.zip
ocfs2: correct range->len in ocfs2_trim_fs()
global bitmap is a cluster allocator,so after we traverse the global bitmap and finished the fstrim,the trimmed range should be 'trimmed * clustersize'.otherwise,the trimmed range printed by 'fstrim -v' is not as expected. Link: https://lkml.kernel.org/r/20230828051741.204577-1-yuanhengzhang1214@gmail.com Signed-off-by: Yuanheng Zhang <yuanhengzhang1214@gmail.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Mark Fasheh <mark@fasheh.com> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Jun Piao <piaojun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/cluster')
0 files changed, 0 insertions, 0 deletions