]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: solve a problem of crossing the boundary in updating backups
authorjiangyiwen <jiangyiwen@huawei.com>
Fri, 25 Mar 2016 21:21:35 +0000 (14:21 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 26 Nov 2016 23:43:27 +0000 (15:43 -0800)
commit9a0ad26211b330e9eb792256096d0d7acc47b83e
tree8f7d1d89fda7fc2011c32dbcdd00c35a7a74bc72
parent1b96cdf1d7bef296250c47905ab62325edec2d0d
ocfs2: solve a problem of crossing the boundary in updating backups

In update_backups() there exists a problem of crossing the boundary as
follows:

we assume that lun will be resized to 1TB(cluster_size is 32kb), it will
include 0~33554431 cluster, in update_backups func, it will backup super
block in location of 1TB which is the 33554432th cluster, so the
phenomenon of crossing the boundary happens.

Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Xue jiufei <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 584dca3440732afa84fbca07567bb66e1453936a)

Orabug: 24939243

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
fs/ocfs2/resize.c