Skip to content
  • David Sterba's avatar
    btrfs: fix warnings after changes in btrfs_abort_transaction · 6d13f549
    David Sterba authored
    
    
    fs/btrfs/volumes.c: In function ‘btrfs_create_uuid_tree’:
    fs/btrfs/volumes.c:3909:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
       btrfs_abort_transaction(trans, tree_root,
       ^
      CC [M]  fs/btrfs/ioctl.o
    fs/btrfs/ioctl.c: In function ‘create_subvol’:
    fs/btrfs/ioctl.c:549:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
       btrfs_abort_transaction(trans, root, PTR_ERR(new_root));
    
    PTR_ERR returns long, but we're really using 'int' for the error codes
    everywhere so just set and use the local variable.
    
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
    Signed-off-by: default avatarChris Mason <clm@fb.com>
    6d13f549