export.c (f9cd49033b349b8be3bb1f01b39eed837853d880) | export.c (94e07a7590ae855bae0536c42b3086fadc7c83a8) |
---|---|
1#include <linux/fs.h> 2#include <linux/types.h> 3#include "ctree.h" 4#include "disk-io.h" 5#include "btrfs_inode.h" 6#include "print-tree.h" 7#include "export.h" 8#include "compat.h" --- 8 unchanged lines hidden (view full) --- 17 struct inode *parent) 18{ 19 struct btrfs_fid *fid = (struct btrfs_fid *)fh; 20 int len = *max_len; 21 int type; 22 23 if (parent && (len < BTRFS_FID_SIZE_CONNECTABLE)) { 24 *max_len = BTRFS_FID_SIZE_CONNECTABLE; | 1#include <linux/fs.h> 2#include <linux/types.h> 3#include "ctree.h" 4#include "disk-io.h" 5#include "btrfs_inode.h" 6#include "print-tree.h" 7#include "export.h" 8#include "compat.h" --- 8 unchanged lines hidden (view full) --- 17 struct inode *parent) 18{ 19 struct btrfs_fid *fid = (struct btrfs_fid *)fh; 20 int len = *max_len; 21 int type; 22 23 if (parent && (len < BTRFS_FID_SIZE_CONNECTABLE)) { 24 *max_len = BTRFS_FID_SIZE_CONNECTABLE; |
25 return 255; | 25 return FILEID_INVALID; |
26 } else if (len < BTRFS_FID_SIZE_NON_CONNECTABLE) { 27 *max_len = BTRFS_FID_SIZE_NON_CONNECTABLE; | 26 } else if (len < BTRFS_FID_SIZE_NON_CONNECTABLE) { 27 *max_len = BTRFS_FID_SIZE_NON_CONNECTABLE; |
28 return 255; | 28 return FILEID_INVALID; |
29 } 30 31 len = BTRFS_FID_SIZE_NON_CONNECTABLE; 32 type = FILEID_BTRFS_WITHOUT_PARENT; 33 34 fid->objectid = btrfs_ino(inode); 35 fid->root_objectid = BTRFS_I(inode)->root->objectid; 36 fid->gen = inode->i_generation; --- 274 unchanged lines hidden --- | 29 } 30 31 len = BTRFS_FID_SIZE_NON_CONNECTABLE; 32 type = FILEID_BTRFS_WITHOUT_PARENT; 33 34 fid->objectid = btrfs_ino(inode); 35 fid->root_objectid = BTRFS_I(inode)->root->objectid; 36 fid->gen = inode->i_generation; --- 274 unchanged lines hidden --- |