-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Linux 4.9 compat #5307
Conversation
@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. |
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]>
854a364
to
1bc248b
Compare
There was a problem hiding this 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) | ||
]) | ||
]) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
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
@tuxoko were you able to boot a 4.9 kernel and test these changes? |
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.