]> err.no Git - linux-2.6/commit
[GFS2] Only set inode flags when required
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 8 Nov 2006 17:51:06 +0000 (12:51 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:34:45 +0000 (10:34 -0500)
commit6b124d8dba1f46c5f2caf3b3159bbe627f75b9b6
tree42f03f02a7fe7ccfc9c676ddcdbdcdcb28defef6
parent2ca99501fa5422e84f18333918a503433449e2b5
[GFS2] Only set inode flags when required

We were setting the inode flags from GFS2's flags far too often, even when they
couldn't possibly have changed. This patch reduces the amount of flag
setting going on so that we do it only when the inode is read in or
when the flags have changed. The create case is covered by the "when
the inode is read in" case.

This also fixes a bug where we didn't set S_SYNC correctly.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c
fs/gfs2/ops_file.c
fs/gfs2/ops_file.h