mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-12-05 10:04:17 +08:00
btrfs-progs: rename fs_devices::latest_trans to match the kernel
Aligning progs's struct btrfs_fs_devices with the kernel rename btrfs_fs_devices::latest_trans to btrfs_fs_devices::latest_generation. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
a11d468e98
commit
09351e3831
@ -368,7 +368,7 @@ static int device_list_add(const char *path,
|
|||||||
|
|
||||||
fs_devices->latest_devid = devid;
|
fs_devices->latest_devid = devid;
|
||||||
/* Below we would set this to found_transid */
|
/* Below we would set this to found_transid */
|
||||||
fs_devices->latest_trans = 0;
|
fs_devices->latest_generation = 0;
|
||||||
fs_devices->lowest_devid = (u64)-1;
|
fs_devices->lowest_devid = (u64)-1;
|
||||||
fs_devices->chunk_alloc_policy = BTRFS_CHUNK_ALLOC_REGULAR;
|
fs_devices->chunk_alloc_policy = BTRFS_CHUNK_ALLOC_REGULAR;
|
||||||
device = NULL;
|
device = NULL;
|
||||||
@ -438,9 +438,9 @@ static int device_list_add(const char *path,
|
|||||||
if (metadata_uuid)
|
if (metadata_uuid)
|
||||||
fs_devices->active_metadata_uuid = true;
|
fs_devices->active_metadata_uuid = true;
|
||||||
|
|
||||||
if (found_transid > fs_devices->latest_trans) {
|
if (found_transid > fs_devices->latest_generation) {
|
||||||
fs_devices->latest_devid = devid;
|
fs_devices->latest_devid = devid;
|
||||||
fs_devices->latest_trans = found_transid;
|
fs_devices->latest_generation = found_transid;
|
||||||
fs_devices->total_devices = device->total_devs;
|
fs_devices->total_devices = device->total_devs;
|
||||||
}
|
}
|
||||||
if (fs_devices->lowest_devid > devid) {
|
if (fs_devices->lowest_devid > devid) {
|
||||||
|
@ -85,7 +85,7 @@ struct btrfs_fs_devices {
|
|||||||
|
|
||||||
/* the device with this id has the most recent copy of the super */
|
/* the device with this id has the most recent copy of the super */
|
||||||
u64 latest_devid;
|
u64 latest_devid;
|
||||||
u64 latest_trans;
|
u64 latest_generation;
|
||||||
u64 lowest_devid;
|
u64 lowest_devid;
|
||||||
|
|
||||||
u64 num_devices;
|
u64 num_devices;
|
||||||
|
Loading…
Reference in New Issue
Block a user