gfs2: indent & fsync changes]]
Hi,
Sorry - I give up, I'm inlining them, see below :-)
-------- Forwarded Message --------
Quoted 24 lines
From: Steven Whitehouse <[email protected]>
To: cluster-devel at redhat.com
Subject: [Fwd: [Cluster-devel] gfs2: indent & fsync changes]
Date: Wed, 06 Dec 2006 16:50:53 +0000Hi,
-------- Forwarded Message --------
Quoted 16 lines
From: Steven Whitehouse <[email protected]>
To: cluster-devel at redhat.com
Subject: [Cluster-devel] gfs2: indent & fsync changes
Date: Wed, 06 Dec 2006 16:45:27 +0000Hi,
This is what I'm intending to add to the git tree to fix up the two minor issues flagged up by on lkml with the latest git tree. They are only small, so I attached both patches.
The other change that I need to make is the patch which Patrick has posted here earlier which affects the DLM only. Subject to ACKs from Andrew Morton and Pavel Machek that will be added to the tree as well and a pull requested first thing tomorrow morning,
Quoted 7 lines
Quoted 2 lines
Steve.
or it would have been had not the email system eaten the patches :( Perhaps my second attempt will work ok,
Steve.
From 887bc5d00c02b32763845247024e8db5243ef857 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Tue, 5 Dec 2006 13:34:17 -0500
Subject: [PATCH] [GFS2] Fix indent in recovery.c
As per comments from Andrew Morton and Jan Engelhardt, this fixes the indent and removes the "static" from a variable declaration since its not needed in this case (now allocated on the stack of the function in question).
--- fs/gfs2/recovery.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/gfs2/recovery.c +1 -1
@@ -136,7 +136,7 @@ static int get_log_header(struct gfs2_jd {struct buffer_head *bh;struct gfs2_log_header_host lh; -static const u32 nothing =0 ; +const u32 nothing =0 ;u32 hash;int error;
Signature · 6 lines
1.4.1 and the second patch....
fs/gfs2/ops_file.c +6 -5
@@ -510,6 +510,11 @@ static int gfs2_close(struct inode *inod* is set. For stuffed inodes we must flush the log in order to * ensure that all data is on disk. * +* The call to write_inode_now() is there to write back metadata and +* the inode itself. It does also try and write the data, but thats +* (hopefully) a no-op due to the VFS having already called filemap_fdatawrite() +* for us. +* * Returns: errno */
@@ -518,10 +523,6 @@ static int gfs2_fsync(struct file *file,struct inode *inode = dentry->d_inode;int sync_state = inode->i_state & (I_DIRTY_SYNC |I_DIRTY_DATASYNC );int ret =0 ; -struct writeback_control wbc = { - .sync_mode =WB_SYNC_ALL , - .nr_to_write =0 , - };if (gfs2_is_jdata (GFS2_I (inode))) {gfs2_log_flush (GFS2_SB (inode),GFS2_I (inode)->i_gl);
@@ -530,7 +531,7 @@ static int gfs2_fsync(struct file *file,if (sync_state !=0 ) {if (!datasync) - ret =sync_inode (inode, &wbc); + ret =write_inode_now (inode,0 );if (gfs2_is_stuffed (GFS2_I (inode)))gfs2_log_flush (GFS2_SB (inode),GFS2_I (inode)->i_gl);