fs/locks: Use allocation rather than the stack in fcntl_getlk()
authorBenjamin Coddington <bcodding@redhat.com>
Sun, 16 Jul 2017 14:28:21 +0000 (10:28 -0400)
committerJeff Layton <jlayton@redhat.com>
Sun, 16 Jul 2017 14:28:21 +0000 (10:28 -0400)
commit52306e882f77d3fd73f91435c41373d634acc5d2
tree31be579b3aa1a962de4ad73eb4e7ddbde911a11e
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
fs/locks: Use allocation rather than the stack in fcntl_getlk()

Struct file_lock is fairly large, so let's save some space on the stack by
using an allocation for struct file_lock in fcntl_getlk(), just as we do
for fcntl_setlk().

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/locks.c