diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-09-10 14:07:38 -0400 |
---|---|---|
committer | Jens Axboe <axboe@carl.home.kernel.dk> | 2010-09-10 14:07:38 -0400 |
commit | c8bf1336824ebd698d37b71763e1c43190f2229a (patch) | |
tree | 19948b3c686ba71bb2e85883a5325cec069015b7 /drivers/md/dm-snap.c | |
parent | 76be97c1fc945db08aae1f1b746012662d643e97 (diff) |
Consolidate min_not_zero
We have several users of min_not_zero, each of them using their own
definition. Move the define to kernel.h.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 5974d3094d97..f30f6e8d594e 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -706,8 +706,6 @@ static int dm_add_exception(void *context, chunk_t old, chunk_t new) | |||
706 | return 0; | 706 | return 0; |
707 | } | 707 | } |
708 | 708 | ||
709 | #define min_not_zero(l, r) (((l) == 0) ? (r) : (((r) == 0) ? (l) : min(l, r))) | ||
710 | |||
711 | /* | 709 | /* |
712 | * Return a minimum chunk size of all snapshots that have the specified origin. | 710 | * Return a minimum chunk size of all snapshots that have the specified origin. |
713 | * Return zero if the origin has no snapshots. | 711 | * Return zero if the origin has no snapshots. |