]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/btrfs/ioctl.c
btrfs: add filesystem generation to FS_INFO ioctl
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 Jul 2020 12:28:59 +0000 (21:28 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:43 +0000 (12:55 +0200)
commit0fb408a558aadbaa58beb75b02c95741e1fbb514
tree5b7905db872ade1c18b74170d69c22fe155ac7a6
parent137c541821a83debb63b3fa8abdd1cbc41bdf3a1
btrfs: add filesystem generation to FS_INFO ioctl

Add retrieval of the filesystem's generation to the fsinfo ioctl. This is
driven by setting the BTRFS_FS_INFO_FLAG_GENERATION flag in
btrfs_ioctl_fs_info_args::flags.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
include/uapi/linux/btrfs.h