prune_super(): sb->s_op is never NULL
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Jul 2013 17:12:31 +0000 (21:12 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 7 Sep 2013 23:54:56 +0000 (19:54 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/super.c

index 5536a95186e28cc60d27676714cc5bb8a1ec350b..f6961ea84c56c7dfa3963626d041d0004d509cbf 100644 (file)
@@ -71,7 +71,7 @@ static int prune_super(struct shrinker *shrink, struct shrink_control *sc)
        if (!grab_super_passive(sb))
                return -1;
 
-       if (sb->s_op && sb->s_op->nr_cached_objects)
+       if (sb->s_op->nr_cached_objects)
                fs_objects = sb->s_op->nr_cached_objects(sb);
 
        total_objects = sb->s_nr_dentry_unused +