Re: [PATCH v5] btrfs: pass checksum type via BTRFS_IOC_FS_INFO ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




pahole -C btrfs_ioctl_fs_info_args fs/btrfs/btrfs.ko
struct btrfs_ioctl_fs_info_args {
         __u64                      max_id;               /*     0     8 */
         __u64                      num_devices;          /*     8     8 */
         __u8                       fsid[16];             /*    16    16 */
         __u32                      nodesize;             /*    32     4 */
         __u32                      sectorsize;           /*    36     4 */
         __u32                      clone_alignment;      /*    40     4 */

         __u32                      flags;                /*    44     4 */
         __u16                      csum_type;            /*    48     2 */
         __u16                      csum_size;            /*    50     2 */

         __u8                       reserved[972];        /*    52   972 */

         /* size: 1024, cachelines: 16, members: 10 */
};


Newer progs shall read the value of flags/csum_type/csum_size from the updated kernel and zeros from the older kernel. Nice fix.

Reviewed-by: Anand Jain <anand.jain@xxxxxxxxxx>

Thanks.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux