f2fs: introduce f2fs_issue_discard() to clean up
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 12 Nov 2013 07:55:17 +0000 (16:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:00 +0000 (10:18 +0900)
commit3720887910864467a61cd0d64bad3965009cdef8
tree73fb7d848e34a5a0d46bcacfcc45dd2946dbb526
parent7ac8c3b051ed3a3e71df72a7ffc44e14cc5c2bae
f2fs: introduce f2fs_issue_discard() to clean up

Change log from v1:
 o fix 32bit drops reported by Dan Carpenter

This patch adds f2fs_issue_discard() to clean up blkdev_issue_discard() flows.

Dan carpenter reported:
"block_t is a 32 bit type and sector_t is a 64 bit type.  The upper 32
bits of the sector_t are not used because the shift will wrap."

Bug-Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/segment.c