aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2007-11-09 05:07:21 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2008-01-25 03:07:59 -0500
commite35b921185728850c5db3b5d5b356178f931a157 (patch)
tree1f5586886b1a81fe961425da3ccc9fde8f40b538 /fs/gfs2/log.c
parentec69b188837a347769e187997d040e84a683b38a (diff)
[GFS2] Don't periodically update the jindex
We only care about the content of the jindex in two cases, one is when we mount the fs and the other is when we need to recover another journal. In both cases we have to update the jindex anyway, so there is no point in updating it periodically between times, so this removes it to simplify gfs2_logd. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index e88a684b2209..4dcc7a8cda22 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -28,7 +28,6 @@
28#include "meta_io.h" 28#include "meta_io.h"
29#include "util.h" 29#include "util.h"
30#include "dir.h" 30#include "dir.h"
31#include "super.h"
32 31
33#define PULL 1 32#define PULL 1
34 33
@@ -874,7 +873,6 @@ void gfs2_meta_syncfs(struct gfs2_sbd *sdp)
874int gfs2_logd(void *data) 873int gfs2_logd(void *data)
875{ 874{
876 struct gfs2_sbd *sdp = data; 875 struct gfs2_sbd *sdp = data;
877 struct gfs2_holder ji_gh;
878 unsigned long t; 876 unsigned long t;
879 int need_flush; 877 int need_flush;
880 878
@@ -893,17 +891,6 @@ int gfs2_logd(void *data)
893 sdp->sd_log_flush_time = jiffies; 891 sdp->sd_log_flush_time = jiffies;
894 } 892 }
895 893
896 /* Check for latest journal index */
897
898 t = sdp->sd_jindex_refresh_time +
899 gfs2_tune_get(sdp, gt_jindex_refresh_secs) * HZ;
900
901 if (time_after_eq(jiffies, t)) {
902 if (!gfs2_jindex_hold(sdp, &ji_gh))
903 gfs2_glock_dq_uninit(&ji_gh);
904 sdp->sd_jindex_refresh_time = jiffies;
905 }
906
907 t = gfs2_tune_get(sdp, gt_logd_secs) * HZ; 894 t = gfs2_tune_get(sdp, gt_logd_secs) * HZ;
908 if (freezing(current)) 895 if (freezing(current))
909 refrigerator(); 896 refrigerator();