export.c (e3900e74f26fc924c8e9e2a922bd40369b0bb517) | export.c (94e07a7590ae855bae0536c42b3086fadc7c83a8) |
---|---|
1#include <linux/ceph/ceph_debug.h> 2 3#include <linux/exportfs.h> 4#include <linux/slab.h> 5#include <asm/unaligned.h> 6 7#include "super.h" 8#include "mds_client.h" --- 67 unchanged lines hidden (view full) --- 76 dentry); 77 *max_len = connected_handle_length; 78 type = 2; 79 spin_unlock(&dentry->d_lock); 80 } else if (*max_len >= handle_length) { 81 if (parent_inode) { 82 /* nfsd wants connectable */ 83 *max_len = connected_handle_length; | 1#include <linux/ceph/ceph_debug.h> 2 3#include <linux/exportfs.h> 4#include <linux/slab.h> 5#include <asm/unaligned.h> 6 7#include "super.h" 8#include "mds_client.h" --- 67 unchanged lines hidden (view full) --- 76 dentry); 77 *max_len = connected_handle_length; 78 type = 2; 79 spin_unlock(&dentry->d_lock); 80 } else if (*max_len >= handle_length) { 81 if (parent_inode) { 82 /* nfsd wants connectable */ 83 *max_len = connected_handle_length; |
84 type = 255; | 84 type = FILEID_INVALID; |
85 } else { 86 dout("encode_fh %p\n", dentry); 87 fh->ino = ceph_ino(inode); 88 *max_len = handle_length; 89 type = 1; 90 } 91 } else { 92 *max_len = handle_length; | 85 } else { 86 dout("encode_fh %p\n", dentry); 87 fh->ino = ceph_ino(inode); 88 *max_len = handle_length; 89 type = 1; 90 } 91 } else { 92 *max_len = handle_length; |
93 type = 255; | 93 type = FILEID_INVALID; |
94 } 95 if (dentry) 96 dput(dentry); 97 return type; 98} 99 100/* 101 * convert regular fh to dentry --- 176 unchanged lines hidden --- | 94 } 95 if (dentry) 96 dput(dentry); 97 return type; 98} 99 100/* 101 * convert regular fh to dentry --- 176 unchanged lines hidden --- |