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

Already on GitHub? Sign in to your account

Linux 3.6 fixes. #1039

Closed
wants to merge 5 commits into
from

Conversation

Projects
None yet
5 participants
Contributor

yshui commented Oct 12, 2012

Sorry, but I just can't resist the itch to write this.

They are all trivial API changes, hopefully I've got them all right.

ryao and others added some commits Aug 16, 2012

Linux 3.6-rc1 Compatibility: Use .mkdir instead of .create in 3.3 com…
…patibility check

Linux 3.6 modifies inode_operations->create's function prototype. This
causes an autotools Linux 3.3. compatibility check for a function
prototype change in create, mkdir and mknode to fail. The check that
Since mkdir and mknode are unchanged, we modify the check to examine it
instead.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Linux 3.6 fixes (part 1):
- sget() now takes one more arguments, which is the mount flag.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Linux 3.6 fixes (part 2):
- iops->lookup() now takes a unsigned int instead of struct nameidata.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Linux 3.6 fixes (part 3)
- .write_super is removed from super_operations.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Linux 3.6 fixes (part 4)
- .create in inode_operations takes a bool flag instead of struct
  nameidata.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Owner

behlendorf commented Oct 12, 2012

By all means, we can use all the help we can get! It might take me a little while to get them reviewed.

@ryao ryao referenced this pull request in zfsonlinux/spl Oct 14, 2012

Closed

Linux 3.6 compat, kern_path_locked() added #179

Member

ryao commented Oct 14, 2012

These look good to me and they work on my desktop. I will backport this along with several other fixes that are currently in git head master to Gentoo's 0.6.0-rc11 packages tomorrow.

Owner

behlendorf commented Oct 14, 2012

@ryao since you guys did all the hard work I'm reviewing these changes now. I expect to get them merged by Monday so you might just want to wait.

Thanks for the patches. They applied clean and no issues under 3.6.2 .

Owner

behlendorf commented Oct 15, 2012

Merged with a few changes for issues discovered during testing. See the following merge branch ee7913b

af26c4d - Patch simplified, the hook was and never will be used.
3c20361 - Restructured in to vfs_compat.h
558ef6d - Additional #ifdef's added to autoconf test for compatibility

@behlendorf behlendorf closed this Oct 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment