source:
trunk/server/common/patches/openafs-linux-3.5-encode-fh.patch
@
2329
Last change on this file since 2329 was 2288, checked in by ezyang, 12 years ago | |
---|---|
File size: 1.4 KB |
-
src/afs/LINUX/osi_compat.h
commit 407e7c90a97143d436ad3a6af6bbfa431c849191 Author: Marc Dionne <marc.c.dionne@gmail.com> Date: Sat Jun 2 21:35:53 2012 -0400 Linux 3.5: encode_fh API change The encode_fh export operation now expects two inode arguments instead of a dentry and a "connectable" flag. Use the inode of the dentry we're interested in, and NULL as the parent inode which is the same as passing a 0 flag in the previous API. Change-Id: I05cf146fb2a4bacdca20a9f108d04ccb11530804 Reviewed-on: http://gerrit.openafs.org/7523 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org> (cherry picked from commit 5227148ae17949705487ea673d558ebfe143e635) Reviewed-on: http://gerrit.openafs.org/7579
a b afs_get_dentry_from_fh(struct super_block *afs_cacheSBp, afs_dcache_id_t *ainode 333 333 static inline int 334 334 afs_get_fh_from_dentry(struct dentry *dp, afs_ufs_dcache_id_t *ainode, int *max_lenp) { 335 335 if (dp->d_sb->s_export_op->encode_fh) 336 return dp->d_sb->s_export_op->encode_fh(dp , &ainode->raw[0], max_lenp, 0);336 return dp->d_sb->s_export_op->encode_fh(dp->d_inode, &ainode->raw[0], max_lenp, NULL); 337 337 #if defined(NEW_EXPORT_OPS) 338 338 /* If fs doesn't provide an encode_fh method, assume the default INO32 type */ 339 339 *max_lenp = sizeof(struct fid)/4;
Note: See TracBrowser
for help on using the repository browser.