From: Andrew Price Date: Wed, 12 Nov 2014 17:24:03 +0000 (+0000) Subject: GFS2: Use inode_newsize_ok and get_write_access in fallocate X-Git-Tag: omap-for-v3.19/fixes-rc1~148^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c9f1159a54c6163dd0b9d2085985d3c98dad11f;p=pandora-kernel.git 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 Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed