@@ -1440,26 +1440,12 @@ static inline u64 btrfs_stripe_offset_nr(struct extent_buffer *eb,
14401440 return btrfs_stripe_offset (eb , btrfs_stripe_nr (c , nr ));
14411441}
14421442
1443- static inline void btrfs_set_stripe_offset_nr (struct extent_buffer * eb ,
1444- struct btrfs_chunk * c , int nr ,
1445- u64 val )
1446- {
1447- btrfs_set_stripe_offset (eb , btrfs_stripe_nr (c , nr ), val );
1448- }
1449-
14501443static inline u64 btrfs_stripe_devid_nr (struct extent_buffer * eb ,
14511444 struct btrfs_chunk * c , int nr )
14521445{
14531446 return btrfs_stripe_devid (eb , btrfs_stripe_nr (c , nr ));
14541447}
14551448
1456- static inline void btrfs_set_stripe_devid_nr (struct extent_buffer * eb ,
1457- struct btrfs_chunk * c , int nr ,
1458- u64 val )
1459- {
1460- btrfs_set_stripe_devid (eb , btrfs_stripe_nr (c , nr ), val );
1461- }
1462-
14631449/* struct btrfs_block_group_item */
14641450BTRFS_SETGET_STACK_FUNCS (block_group_used , struct btrfs_block_group_item ,
14651451 used , 64 );
@@ -1517,14 +1503,6 @@ btrfs_inode_ctime(struct btrfs_inode_item *inode_item)
15171503 return (struct btrfs_timespec * )ptr ;
15181504}
15191505
1520- static inline struct btrfs_timespec *
1521- btrfs_inode_otime (struct btrfs_inode_item * inode_item )
1522- {
1523- unsigned long ptr = (unsigned long )inode_item ;
1524- ptr += offsetof(struct btrfs_inode_item , otime );
1525- return (struct btrfs_timespec * )ptr ;
1526- }
1527-
15281506BTRFS_SETGET_FUNCS (timespec_sec , struct btrfs_timespec , sec , 64 );
15291507BTRFS_SETGET_FUNCS (timespec_nsec , struct btrfs_timespec , nsec , 32 );
15301508
@@ -1875,33 +1853,6 @@ static inline u8 *btrfs_header_chunk_tree_uuid(struct extent_buffer *eb)
18751853 return (u8 * )ptr ;
18761854}
18771855
1878- static inline u8 * btrfs_super_fsid (struct extent_buffer * eb )
1879- {
1880- unsigned long ptr = offsetof(struct btrfs_super_block , fsid );
1881- return (u8 * )ptr ;
1882- }
1883-
1884- static inline u8 * btrfs_header_csum (struct extent_buffer * eb )
1885- {
1886- unsigned long ptr = offsetof(struct btrfs_header , csum );
1887- return (u8 * )ptr ;
1888- }
1889-
1890- static inline struct btrfs_node * btrfs_buffer_node (struct extent_buffer * eb )
1891- {
1892- return NULL ;
1893- }
1894-
1895- static inline struct btrfs_leaf * btrfs_buffer_leaf (struct extent_buffer * eb )
1896- {
1897- return NULL ;
1898- }
1899-
1900- static inline struct btrfs_header * btrfs_buffer_header (struct extent_buffer * eb )
1901- {
1902- return NULL ;
1903- }
1904-
19051856static inline int btrfs_is_leaf (struct extent_buffer * eb )
19061857{
19071858 return btrfs_header_level (eb ) == 0 ;
@@ -2055,22 +2006,6 @@ static inline struct btrfs_root *btrfs_sb(struct super_block *sb)
20552006 return sb -> s_fs_info ;
20562007}
20572008
2058- static inline int btrfs_set_root_name (struct btrfs_root * root ,
2059- const char * name , int len )
2060- {
2061- /* if we already have a name just free it */
2062- kfree (root -> name );
2063-
2064- root -> name = kmalloc (len + 1 , GFP_KERNEL );
2065- if (!root -> name )
2066- return - ENOMEM ;
2067-
2068- memcpy (root -> name , name , len );
2069- root -> name [len ] = '\0' ;
2070-
2071- return 0 ;
2072- }
2073-
20742009static inline u32 btrfs_level_size (struct btrfs_root * root , int level )
20752010{
20762011 if (level == 0 )
@@ -2304,11 +2239,6 @@ static inline int btrfs_del_item(struct btrfs_trans_handle *trans,
23042239
23052240int btrfs_insert_item (struct btrfs_trans_handle * trans , struct btrfs_root
23062241 * root , struct btrfs_key * key , void * data , u32 data_size );
2307- int btrfs_insert_some_items (struct btrfs_trans_handle * trans ,
2308- struct btrfs_root * root ,
2309- struct btrfs_path * path ,
2310- struct btrfs_key * cpu_key , u32 * data_size ,
2311- int nr );
23122242int btrfs_insert_empty_items (struct btrfs_trans_handle * trans ,
23132243 struct btrfs_root * root ,
23142244 struct btrfs_path * path ,
@@ -2354,8 +2284,6 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root
23542284 * item );
23552285int btrfs_find_last_root (struct btrfs_root * root , u64 objectid , struct
23562286 btrfs_root_item * item , struct btrfs_key * key );
2357- int btrfs_search_root (struct btrfs_root * root , u64 search_start ,
2358- u64 * found_objectid );
23592287int btrfs_find_dead_roots (struct btrfs_root * root , u64 objectid );
23602288int btrfs_find_orphan_roots (struct btrfs_root * tree_root );
23612289int btrfs_set_root_node (struct btrfs_root_item * item ,
@@ -2494,8 +2422,6 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
24942422 u32 min_type );
24952423
24962424int btrfs_start_delalloc_inodes (struct btrfs_root * root , int delay_iput );
2497- int btrfs_start_one_delalloc_inode (struct btrfs_root * root , int delay_iput ,
2498- int sync );
24992425int btrfs_set_extent_delalloc (struct inode * inode , u64 start , u64 end ,
25002426 struct extent_state * * cached_state );
25012427int btrfs_writepages (struct address_space * mapping ,
@@ -2579,10 +2505,6 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
25792505/* sysfs.c */
25802506int btrfs_init_sysfs (void );
25812507void btrfs_exit_sysfs (void );
2582- int btrfs_sysfs_add_super (struct btrfs_fs_info * fs );
2583- int btrfs_sysfs_add_root (struct btrfs_root * root );
2584- void btrfs_sysfs_del_root (struct btrfs_root * root );
2585- void btrfs_sysfs_del_super (struct btrfs_fs_info * root );
25862508
25872509/* xattr.c */
25882510ssize_t btrfs_listxattr (struct dentry * dentry , char * buffer , size_t size );
0 commit comments