]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Add rindex fields to rgrp headers
authorAndrew Price <anprice@redhat.com>
Tue, 12 Dec 2017 17:40:05 +0000 (11:40 -0600)
committerBob Peterson <rpeterso@redhat.com>
Tue, 12 Dec 2017 17:43:36 +0000 (11:43 -0600)
commit717f6a858121a3ac312c1b489f18347f4300d6c2
tree4648063f93f787811392d995736b6672c0d6b2ef
parenta9b45a94afdcb6bc2276659086c49da533233451
gfs2: Add rindex fields to rgrp headers

Add rg_data0, rg_data and rg_bitbytes to struct gfs2_rgrp. The fields
are identical to their counterparts in struct gfs2_rindex and are
intended to reduce the use of the rindex. For now the fields are only
written back as the in-memory equivalents in struct gfs2_rgrpd are set
using values from the rindex. However, they are needed at this point so
that userspace can make use of them, allowing a migration away from the
rindex over time.

The new fields take up previously reserved space which was explicitly
zeroed on write so, in clusters with mixed kernels, these fields could
get zeroed after being set and this should not be treated as an error.

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/rgrp.c
include/uapi/linux/gfs2_ondisk.h