[PATCH 1/4] GFS2: fix bad inode i_goal values during block allocation

2014-10-08 Thread Steven Whitehouse
From: Abhi Das This patch checks if i_goal is either zero or if doesn't exist within any rgrp (i.e gfs2_blk2rgrpd() returns NULL). If so, it assigns the ip->i_no_addr block as the i_goal. There are two scenarios where a bad i_goal can result in a -EBADSLT error. 1. Attempting to allocate to an

[PATCH 1/4] GFS2: fix bad inode i_goal values during block allocation

2014-10-08 Thread Steven Whitehouse
From: Abhi Das a...@redhat.com This patch checks if i_goal is either zero or if doesn't exist within any rgrp (i.e gfs2_blk2rgrpd() returns NULL). If so, it assigns the ip-i_no_addr block as the i_goal. There are two scenarios where a bad i_goal can result in a -EBADSLT error. 1. Attempting to