Revision 3f380998aeb51b99d5d22cadb41162e1e9db70d2 authored by Kautuk Consul on 01 November 2011, 00:09:11 UTC, committed by Linus Torvalds on 01 November 2011, 00:30:49 UTC
write_scan_unevictable_node() checks the value req returned by strict_strtoul() and returns 1 if req is 0. However, when strict_strtoul() returns 0, it means successful conversion of buf to unsigned long. Due to this, the function was not proceeding to scan the zones for unevictable pages even though we write a valid value to the scan_unevictable_pages sys file. Change this check slightly to check for invalid value in buf as well as 0 value stored in res after successful conversion via strict_strtoul. In both cases, we do not perform the scanning of this node's zones. Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Johannes Weiner <jweiner@redhat.com> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4e9dc5d
File | Mode | Size |
---|---|---|
fc | ||
Kbuild | -rw-r--r-- | 99 bytes |
fc_encode.h | -rw-r--r-- | 10.5 KB |
fc_frame.h | -rw-r--r-- | 6.9 KB |
iscsi_if.h | -rw-r--r-- | 13.1 KB |
iscsi_proto.h | -rw-r--r-- | 16.0 KB |
libfc.h | -rw-r--r-- | 33.4 KB |
libfcoe.h | -rw-r--r-- | 11.8 KB |
libiscsi.h | -rw-r--r-- | 12.9 KB |
libiscsi_tcp.h | -rw-r--r-- | 4.2 KB |
libsas.h | -rw-r--r-- | 17.6 KB |
libsrp.h | -rw-r--r-- | 1.5 KB |
osd_attributes.h | -rw-r--r-- | 15.0 KB |
osd_initiator.h | -rw-r--r-- | 16.2 KB |
osd_ore.h | -rw-r--r-- | 5.3 KB |
osd_protocol.h | -rw-r--r-- | 17.6 KB |
osd_sec.h | -rw-r--r-- | 1.5 KB |
osd_sense.h | -rw-r--r-- | 9.9 KB |
osd_types.h | -rw-r--r-- | 1021 bytes |
sas.h | -rw-r--r-- | 12.1 KB |
sas_ata.h | -rw-r--r-- | 2.2 KB |
scsi.h | -rw-r--r-- | 17.6 KB |
scsi_bsg_fc.h | -rw-r--r-- | 8.6 KB |
scsi_bsg_iscsi.h | -rw-r--r-- | 2.8 KB |
scsi_cmnd.h | -rw-r--r-- | 8.2 KB |
scsi_dbg.h | -rw-r--r-- | 968 bytes |
scsi_device.h | -rw-r--r-- | 17.2 KB |
scsi_devinfo.h | -rw-r--r-- | 1.9 KB |
scsi_dh.h | -rw-r--r-- | 2.6 KB |
scsi_driver.h | -rw-r--r-- | 1.0 KB |
scsi_eh.h | -rw-r--r-- | 2.7 KB |
scsi_host.h | -rw-r--r-- | 28.0 KB |
scsi_ioctl.h | -rw-r--r-- | 1.2 KB |
scsi_netlink.h | -rw-r--r-- | 4.3 KB |
scsi_netlink_fc.h | -rw-r--r-- | 1.9 KB |
scsi_scan.h | -rw-r--r-- | 256 bytes |
scsi_tcq.h | -rw-r--r-- | 4.1 KB |
scsi_tgt.h | -rw-r--r-- | 807 bytes |
scsi_tgt_if.h | -rw-r--r-- | 2.5 KB |
scsi_transport.h | -rw-r--r-- | 3.9 KB |
scsi_transport_fc.h | -rw-r--r-- | 25.2 KB |
scsi_transport_iscsi.h | -rw-r--r-- | 11.0 KB |
scsi_transport_sas.h | -rw-r--r-- | 6.3 KB |
scsi_transport_spi.h | -rw-r--r-- | 7.1 KB |
scsi_transport_srp.h | -rw-r--r-- | 902 bytes |
scsicam.h | -rw-r--r-- | 674 bytes |
sg.h | -rw-r--r-- | 14.1 KB |
srp.h | -rw-r--r-- | 6.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...