summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2013-02-26 17:15:20 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2013-04-08 09:39:56 +0200
commitfd4b4e042c6aac980ccac0e829aa1378d2c17bd5 (patch)
treefbb997693736724c2484fe219911d1dde609f090 /fs/gfs2/glock.h
parentLinux 3.9-rc6 (diff)
downloadlinux-fd4b4e042c6aac980ccac0e829aa1378d2c17bd5.tar.xz
linux-fd4b4e042c6aac980ccac0e829aa1378d2c17bd5.zip
GFS2: Clean up inode creation path
This patch cleans up the inode creation code path in GFS2. After the Orlov allocator was merged, a number of potential improvements are now possible, and this is a first set of these. The quota handling is now updated so that it matches the point in the code where the allocation takes place. This means that the one exception in gfs2_alloc_blocks relating to quota is now no longer required, and we can use the generic code everywhere. In addition the call to figure out whether we need to allocate any extra blocks in order to add a directory entry is moved higher up gfs2_create_inode. This means that if it returns an error, we can deal with that at a stage where it is easier to handle that case. The returned status cannot change during the function since we hold an exclusive lock on the directory. Two calls to gfs2_rindex_update have been changed to one, again at the top of gfs2_create_inode to simplify error handling. The time stamps are also now initialised earlier in the creation process, this is gradually moving towards being able to remove the call to gfs2_refresh_inode in gfs2_inode_create once we have all the fields covered. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
0 files changed, 0 insertions, 0 deletions