Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 4.4 #14

Merged
merged 4 commits into from
Jul 22, 2017
Merged

Linux 4.4 #14

merged 4 commits into from
Jul 22, 2017

Conversation

domingues
Copy link
Contributor

Added compatibility to Linux kernel 4.4.

@vijay03 vijay03 requested a review from ashmrtn July 20, 2017 23:13
#include "utils_c.h"
#include <linux/blk_types.h>

bool __c_is_async_write(struct disk_write_op_meta *m) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identifiers starting with _ are generally "reserved" by the compiler or the language. Could you please change these to start with something else?

(SO further reading here if you so desire)

code/cow_brd.c Outdated
@@ -417,9 +419,22 @@ static void brd_make_request(struct request_queue *q, struct bio *bio)
}
sector += len >> SECTOR_SHIFT;
}
#else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please indent to be even with the code above, use 2 spaces per "tab" please :)

code/bio_alias.h Outdated
#define BI_SECTOR bi_sector
#define BIO_ENDIO(bio, err) bio_endio(bio, err)

#else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please write a comment stating that this was originally written to target 4.4 kernels since there is no kernel version for this segment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the code to say exactly what versions of the kernel we know that work.

@@ -239,7 +240,19 @@ static void disk_wrapper_bio(struct request_queue* q, struct bio* bio) {
kunmap(bio_data);
copied_data += vec->bv_len;
}
#else
struct bio_vec vec;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indentation

@vijay03
Copy link
Member

vijay03 commented Jul 21, 2017

Hi @domingues, lets get this fixed and merged soon. I'd like you to start working on #1 next (assuming @ashmrtn doesn't have something else planned)

@domingues domingues merged commit 01520f1 into master Jul 22, 2017
@domingues domingues deleted the linux-4.4 branch July 22, 2017 01:23
@ashmrtn ashmrtn mentioned this pull request Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants