]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: mark the superblock as dirty a bit later
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 1 Jun 2012 14:18:07 +0000 (17:18 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Jun 2012 14:37:36 +0000 (10:37 -0400)
commit6ce0d9c96bb0899c1a8fcacb32fb98880bdb64c4
treebf426f26c8265c3572e37e3a0908624da0cf0a58
parent427e134be542e099101265601f47a68d437d4e08
reiserfs: mark the superblock as dirty a bit later

The 'journal_mark_dirty()' function currently first marks the superblock as
dirty by setting 's_dirt' to 1, then does various sanity checks and returns,
then actuall does all the magic with the journal.

This is not an ideal order, though. It makes more sense to first do all the
checks, then do all the internal stuff, and at the end notify the VFS that the
superblock is now dirty.

This patch moves the 's_dirt = 1' assignment from the very beginning of this
function to the very end.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/journal.c