]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
GFS2: Increase i_writecount during gfs2_setattr_size
authorBob Peterson <rpeterso@redhat.com>
Tue, 28 May 2013 14:04:44 +0000 (10:04 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 3 Jun 2013 15:38:58 +0000 (16:38 +0100)
commit2b3dcf35810ff02ad0e785527a25c1b13bf82b19
tree0ab2a2f709290e2eb4d74d385a7d832929e3768c
parent4a586812055dbd2588b0836ab758f6b9670c3949
GFS2: Increase i_writecount during gfs2_setattr_size

This patch calls get_write_access in a few functions. This
merely increases inode->i_writecount for the duration of the function.
That will ensure that any file closes won't delete the inode's
multi-block reservation while the function is running.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c
fs/gfs2/file.c
fs/gfs2/rgrp.c