Jeffrey Wu
2009-Aug-30 03:02 UTC
[PATCH] Btrfs: improve the BIO_RW_DISCARD conditional compile func definition
The conditional compile func definition shall better not be defined this way: static int btrfs_issue_discard() { #ifdef BIO_RW_DISCARD ... #else return 0; #endif } instead, can be better done this way: #ifndef BIO_RW_DISCARD static int btrfs_issue_discard() { return 0; } #endif #ifdef BIO_RW_DISCARD static int btrfs_issue_discard() { ... } #endif
Reasonably Related Threads
- Building btrfs as a dkms module on Debian
- dkms build error
- [PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations
- btrfs-progs trivial: Double definition of BTRFS_CSUM_TYPE_CRC32 in ctree.h
- [PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations V2