Steven Whitehouse ab9bbda020 GFS2: Use ->dirty_inode()
The aim of this patch is to use the newly enhanced ->dirty_inode()
super block operation to deal with atime updates, rather than
piggy backing that code into ->write_inode() as is currently
done.

The net result is a simplification of the code in various places
and a reduction of the number of gfs2_dinode_out() calls since
this is now implied by ->dirty_inode().

Some of the mark_inode_dirty() calls have been moved under glocks
in order to take advantage of then being able to avoid locking in
->dirty_inode() when we already have suitable locks.

One consequence is that generic_write_end() now correctly deals
with file size updates, so that we do not need a separate check
for that afterwards. This also, indirectly, means that fdatasync
should work correctly on GFS2 - the current code always syncs the
metadata whether it needs to or not.

Has survived testing with postmark (with and without atime) and
also fsx.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2011-10-21 12:39:26 +01:00
..
2011-10-21 12:39:26 +01:00
2011-07-25 14:30:23 -04:00
2011-10-21 12:39:26 +01:00
2010-09-20 11:18:16 +01:00
2011-10-21 12:39:26 +01:00
2011-10-21 12:39:26 +01:00
2011-04-20 09:00:41 +01:00
2011-10-21 12:39:23 +01:00
2011-10-21 12:39:26 +01:00
2011-10-21 12:39:26 +01:00
2010-09-20 11:18:46 +01:00
2011-03-09 10:58:04 +00:00
2011-07-26 16:49:47 -07:00
2011-05-10 13:12:49 +01:00
2011-04-20 09:00:24 +01:00
2011-10-21 12:39:26 +01:00
2010-09-29 14:20:52 +01:00
2011-10-21 12:39:26 +01:00
2011-07-12 09:15:46 +01:00
2011-10-21 12:39:26 +01:00