mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 07:32:22 +00: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;
|
||||
/* 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->chunk_alloc_policy = BTRFS_CHUNK_ALLOC_REGULAR;
|
||||
device = NULL;
|
||||
@ -438,9 +438,9 @@ static int device_list_add(const char *path,
|
||||
if (metadata_uuid)
|
||||
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_trans = found_transid;
|
||||
fs_devices->latest_generation = found_transid;
|
||||
fs_devices->total_devices = device->total_devs;
|
||||
}
|
||||
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 */
|
||||
u64 latest_devid;
|
||||
u64 latest_trans;
|
||||
u64 latest_generation;
|
||||
u64 lowest_devid;
|
||||
|
||||
u64 num_devices;
|
||||
|
Loading…
Reference in New Issue
Block a user