]> git.baikalelectronics.ru Git - kernel.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)
commit4bf7e631af505280d50b00465f3813af4c5fdfe6
tree0ab2a2f709290e2eb4d74d385a7d832929e3768c
parentf5b38fb9ecbf29a15ea2c347e98fde95a3fcd340
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