From: Eric Sandeen Date: Tue, 9 Sep 2014 01:57:52 +0000 (+1000) Subject: xfs: check resblks before calling xfs_dir_canenter X-Git-Tag: omap-for-v3.19/prcm-cleanup~101^2~6^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94f3cad555d66048906deade06a764f7ea2c6e4d;p=pandora-kernel.git xfs: check resblks before calling xfs_dir_canenter Move the resblks test out of the xfs_dir_canenter, and into the caller. This makes a little more sense on the face of it; xfs_dir_canenter immediately returns if resblks !=0; and given some of the comments preceding the calls: * Check for ability to enter directory entry, if no space reserved. even more so. It also facilitates the next patch. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- Reading git-diff-tree failed