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)
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

diff --cc fs/gfs2/bmap.c
Simple merge
diff --cc fs/gfs2/file.c
Simple merge
diff --cc fs/gfs2/rgrp.c
Simple merge