]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: send: replace check with an assert in gen_unique_name
authorDavid Sterba <dsterba@suse.cz>
Mon, 3 Feb 2014 17:24:09 +0000 (18:24 +0100)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:44 +0000 (15:15 -0400)
commita0eed7ae521798ee017101a18373219ff3c8af57
tree7daf4e281e32054614337266f57797b1b02c5cea
parentc1ee9a2133a8fa123e214efb6426ffd8fa422af3
btrfs: send: replace check with an assert in gen_unique_name

The buffer passed to snprintf can hold the fully expanded format string,
64 = 3x largest ULL + 3x char + trailing null.  I don't think that removing the
check entirely is a good idea, hence the ASSERT.

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