Andrew Price 9c9f1159a5 GFS2: Use inode_newsize_ok and get_write_access in fallocate
gfs2_fallocate wasn't checking inode_newsize_ok nor get_write_access.
Split out the context setup and inode locking pieces into a separate
function to make it more clear and add these missing calls.

inode_newsize_ok is called conditional on FALLOC_FL_KEEP_SIZE as there
is no need to enforce a file size limit if it isn't going to change.

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2014-11-14 14:14:30 +00:00
..
2014-03-19 15:53:52 +00:00
2014-03-19 15:16:24 +00:00
2014-08-21 10:22:23 +01:00
2014-03-03 13:50:12 +00:00
2013-06-29 12:57:05 +04:00
2008-06-27 09:39:44 +01:00
2014-05-14 10:04:34 +01:00
2014-11-03 19:23:32 +00:00
2013-06-14 11:17:15 +01:00
2013-06-03 14:20:18 -07:00
2014-05-14 10:04:34 +01:00
2014-05-14 10:04:34 +01:00
2014-03-07 09:30:51 +00:00
2011-05-10 13:12:49 +01:00
2014-05-14 10:04:34 +01:00
2013-01-29 10:29:05 +00:00
2012-01-11 09:23:05 +00:00
2009-12-16 12:16:49 -05:00