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.9 compat #5307

Merged
merged 4 commits into from
Oct 20, 2016
Merged

Linux 4.9 compat #5307

merged 4 commits into from
Oct 20, 2016

Conversation

tuxoko
Copy link
Contributor

@tuxoko tuxoko commented Oct 19, 2016

Mostly the same with #5301.
The difference:
The "Remove dir inode operations from zpl_inode_operations" removes the inode operations that should not belong to regular file.
The "rename" patch, I tried to not mangle with the function prototype.

@mention-bot
Copy link

@tuxoko, thanks for your PR! By analyzing the history of the files in this pull request, we identified @behlendorf, @maxximino and @ryao to be potential reviewers.

Chunwei Chen added 3 commits October 19, 2016 11:46
These operations are dir specific, there's no point putting them in
zpl_inode_operations which is for regular files.

Signed-off-by: Chunwei Chen <[email protected]>
In Linux 4.9, torvalds/linux@2773bf0, iops->rename() and iops->rename2() are
merged together into iops->rename(), it now wants flags.

Signed-off-by: Chunwei Chen <[email protected]>
In Linux 4.9, torvalds/linux@fd50eca, iops->{set,get,remove}xattr and
generic_{set,get,remove}xattr are removed. xattr operations will directly
go through sb->s_xattr.

Signed-off-by: Chunwei Chen <[email protected]>
@tuxoko tuxoko force-pushed the linux4.9 branch 2 times, most recently from 854a364 to 1bc248b Compare October 19, 2016 19:18
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

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

Let's go with your version of these changes instead of the ones I proposed. I'd just like to swap out the setattr-prepare configure check.

],[
AC_MSG_RESULT(no)
])
])
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's steal my configure check, 3d8c8e8, for this since it also verifies the argument types to setattr_prepare which means if they change we'll notice immediately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@behlendorf behlendorf mentioned this pull request Oct 19, 2016
In torvalds/linux@31051c8 the inode_change_ok() function was
renamed setattr_prepare() and updated to take a dentry ratheri
than an inode.  Update the code to call the setattr_prepare()
and add a wrapper function which call inode_change_ok() for
older kernels.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Requires-spl: refs/pull/581/head
@behlendorf
Copy link
Contributor

@tuxoko were you able to boot a 4.9 kernel and test these changes?

@behlendorf behlendorf merged commit 3b0ba3b into openzfs:master Oct 20, 2016
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.

3 participants