diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2007-11-09 10:07:21 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-01-25 08:07:59 +0000 |
commit | e35b921185728850c5db3b5d5b356178f931a157 (patch) | |
tree | 1f5586886b1a81fe961425da3ccc9fde8f40b538 /fs/gfs2/log.c | |
parent | ec69b188837a347769e187997d040e84a683b38a (diff) | |
download | linux-3.10-e35b921185728850c5db3b5d5b356178f931a157.tar.gz linux-3.10-e35b921185728850c5db3b5d5b356178f931a157.tar.bz2 linux-3.10-e35b921185728850c5db3b5d5b356178f931a157.zip |
[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.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index e88a684b220..4dcc7a8cda2 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c @@ -28,7 +28,6 @@ #include "meta_io.h" #include "util.h" #include "dir.h" -#include "super.h" #define PULL 1 @@ -874,7 +873,6 @@ void gfs2_meta_syncfs(struct gfs2_sbd *sdp) int gfs2_logd(void *data) { struct gfs2_sbd *sdp = data; - struct gfs2_holder ji_gh; unsigned long t; int need_flush; @@ -893,17 +891,6 @@ int gfs2_logd(void *data) sdp->sd_log_flush_time = jiffies; } - /* Check for latest journal index */ - - t = sdp->sd_jindex_refresh_time + - gfs2_tune_get(sdp, gt_jindex_refresh_secs) * HZ; - - if (time_after_eq(jiffies, t)) { - if (!gfs2_jindex_hold(sdp, &ji_gh)) - gfs2_glock_dq_uninit(&ji_gh); - sdp->sd_jindex_refresh_time = jiffies; - } - t = gfs2_tune_get(sdp, gt_logd_secs) * HZ; if (freezing(current)) refrigerator(); |