summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/dir.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2014-01-06 13:03:05 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2014-01-06 13:03:05 +0100
commit534cf9ca553953e4c12fa5f0d23e543f9a6ccbaf (patch)
tree755e7422a40d7720f6cc3f233bc96f5606a4f2ce /fs/gfs2/dir.c
parentGFS2: Add directory addition info structure (diff)
downloadlinux-534cf9ca553953e4c12fa5f0d23e543f9a6ccbaf.tar.xz
linux-534cf9ca553953e4c12fa5f0d23e543f9a6ccbaf.zip
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 <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/dir.c')
0 files changed, 0 insertions, 0 deletions