diff options
author | Bob Peterson <rpeterso@redhat.com> | 2017-07-26 17:18:19 +0200 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2017-08-09 16:36:38 +0200 |
commit | 2d821a8b7192ed9d2ea0c30f3cb62b58aa46cf41 (patch) | |
tree | d4d92df3dc476c6aedc3d62c16ed8dbb4df48df5 /fs/gfs2 | |
parent | GFS2: Clear gl_object when deleting an inode in gfs2_delete_inode (diff) | |
download | linux-2d821a8b7192ed9d2ea0c30f3cb62b58aa46cf41.tar.xz linux-2d821a8b7192ed9d2ea0c30f3cb62b58aa46cf41.zip |
GFS2: Don't bother trying to add rgrps to the lru list
This patch removes a call to gfs2_glock_add_to_lru from function
gfs2_clear_rgrpd. The call is just a waste of time because as soon
as it adds it to the lru_list, the call to gfs2_glock_put takes it
back off again.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/rgrp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 836e38ba5d0a..29fbeee36fa6 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -706,7 +706,6 @@ void gfs2_clear_rgrpd(struct gfs2_sbd *sdp) if (gl) { glock_set_object(gl, NULL); - gfs2_glock_add_to_lru(gl); gfs2_glock_put(gl); } |