diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-01 16:36:16 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-08-01 16:48:07 +1000 |
commit | dfd7fac6650e04d5731e1dd0fb29743736cc5340 (patch) | |
tree | e573390e7ecd8db76af7fa2abc01ec7fdd6451f4 | |
parent | 4a34cecab8392c9ad0e2cdf4251c27c18338ea67 (diff) |
UBIFS: signedness bug in ubifs_shrink_count()
We test "clean_zn_cnt" for negative later in the function.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dave Chinner <dchinner@redhat.com>
Cc: Glauber Costa <glommer@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | fs/ubifs/shrinker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/shrinker.c b/fs/ubifs/shrinker.c index 68ce39965f0f..f35135e28e96 100644 --- a/fs/ubifs/shrinker.c +++ b/fs/ubifs/shrinker.c @@ -280,7 +280,7 @@ static int kick_a_thread(void) unsigned long ubifs_shrink_count(struct shrinker *shrink, struct shrink_control *sc) { - unsigned long clean_zn_cnt = atomic_long_read(&ubifs_clean_zn_cnt); + long clean_zn_cnt = atomic_long_read(&ubifs_clean_zn_cnt); /* * Due to the way UBIFS updates the clean znode counter it may |