OSDN Git Service

Btrfs: don't use src fd for printk
authorJosef Bacik <jbacik@fb.com>
Fri, 25 Mar 2016 14:02:41 +0000 (10:02 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Apr 2016 14:29:22 +0000 (16:29 +0200)
commitc79b4713304f812d3d6c95826fc3e5fc2c0b0c14
treeaccf317687a0966ad8e98f725fd4cfbc6c197dd1
parent8f282f71eaee7ac979cdbe525f76daa0722798a8
Btrfs: don't use src fd for printk

The fd we pass in may not be on a btrfs file system, so don't try to do
BTRFS_I() on it.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c