btrfs: sysfs: export filesystem generation
authorAnand Jain <anand.jain@oracle.com>
Wed, 7 Oct 2020 07:20:03 +0000 (15:20 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 7 Dec 2020 15:23:59 +0000 (16:23 +0100)
commit089c8b0551f46e1c44269c10b0576e031e942acd
tree4f75c66c9938fa444de329592d29721c2775a509
parent0477e92881850d44910a7e94fc2c46f96faa131f
btrfs: sysfs: export filesystem generation

Matching with the information that's available from the ioctl
FS_INFO, add generation to the per-filesystem directory
/sys/fs/btrfs/UUID/generation, which could be used by scripts.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c