]> 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)
commit22e156e94a0ce39f1feafdef1eb8458dc1569f91
tree0ab2a2f709290e2eb4d74d385a7d832929e3768c
parent19f2c95cb97828523c6a4c0b86cd18c0510b6735
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