From: Steven Whitehouse Date: Mon, 6 Jan 2014 12:03:05 +0000 (+0000) Subject: GFS2: Consolidate transaction blocks calculation for dir add X-Git-Tag: v3.14-rc1~140^2~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=534cf9ca553953e4c12fa5f0d23e543f9a6ccbaf;p=pandora-kernel.git GFS2: Consolidate transaction blocks calculation for dir add There are three cases where we need to calculate the number of blocks to reserve in a transaction involving linking an inode into a directory. The one in rename is a bit more complicated, but the basis of it is the same as for link and create. So it makes sense to move this calculation into a single function rather than repeating it three times. Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed