procfs.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. /* -*- linux-c -*- */
  2. /* fs/reiserfs/procfs.c */
  3. /*
  4. * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
  5. */
  6. /* proc info support a la one created by Sizif@Botik.RU for PGC */
  7. /* $Id: procfs.c,v 1.1.8.2 2001/07/15 17:08:42 god Exp $ */
  8. #include <linux/module.h>
  9. #include <linux/time.h>
  10. #include <linux/seq_file.h>
  11. #include <asm/uaccess.h>
  12. #include <linux/reiserfs_fs.h>
  13. #include <linux/reiserfs_fs_sb.h>
  14. #include <linux/init.h>
  15. #include <linux/proc_fs.h>
  16. #ifdef CONFIG_REISERFS_PROC_INFO
  17. /*
  18. * LOCKING:
  19. *
  20. * We rely on new Alexander Viro's super-block locking.
  21. *
  22. */
  23. static int show_version(struct seq_file *m, struct super_block *sb)
  24. {
  25. char *format;
  26. if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_6)) {
  27. format = "3.6";
  28. } else if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_5)) {
  29. format = "3.5";
  30. } else {
  31. format = "unknown";
  32. }
  33. seq_printf(m, "%s format\twith checks %s\n", format,
  34. #if defined( CONFIG_REISERFS_CHECK )
  35. "on"
  36. #else
  37. "off"
  38. #endif
  39. );
  40. return 0;
  41. }
  42. int reiserfs_global_version_in_proc(char *buffer, char **start, off_t offset,
  43. int count, int *eof, void *data)
  44. {
  45. *start = buffer;
  46. *eof = 1;
  47. return 0;
  48. }
  49. #define SF( x ) ( r -> x )
  50. #define SFP( x ) SF( s_proc_info_data.x )
  51. #define SFPL( x ) SFP( x[ level ] )
  52. #define SFPF( x ) SFP( scan_bitmap.x )
  53. #define SFPJ( x ) SFP( journal.x )
  54. #define D2C( x ) le16_to_cpu( x )
  55. #define D4C( x ) le32_to_cpu( x )
  56. #define DF( x ) D2C( rs -> s_v1.x )
  57. #define DFL( x ) D4C( rs -> s_v1.x )
  58. #define objectid_map( s, rs ) (old_format_only (s) ? \
  59. (__le32 *)((struct reiserfs_super_block_v1 *)rs + 1) : \
  60. (__le32 *)(rs + 1))
  61. #define MAP( i ) D4C( objectid_map( sb, rs )[ i ] )
  62. #define DJF( x ) le32_to_cpu( rs -> x )
  63. #define DJV( x ) le32_to_cpu( s_v1 -> x )
  64. #define DJP( x ) le32_to_cpu( jp -> x )
  65. #define JF( x ) ( r -> s_journal -> x )
  66. static int show_super(struct seq_file *m, struct super_block *sb)
  67. {
  68. struct reiserfs_sb_info *r = REISERFS_SB(sb);
  69. seq_printf(m, "state: \t%s\n"
  70. "mount options: \t%s%s%s%s%s%s%s%s%s%s%s\n"
  71. "gen. counter: \t%i\n"
  72. "s_disk_reads: \t%i\n"
  73. "s_disk_writes: \t%i\n"
  74. "s_fix_nodes: \t%i\n"
  75. "s_do_balance: \t%i\n"
  76. "s_unneeded_left_neighbor: \t%i\n"
  77. "s_good_search_by_key_reada: \t%i\n"
  78. "s_bmaps: \t%i\n"
  79. "s_bmaps_without_search: \t%i\n"
  80. "s_direct2indirect: \t%i\n"
  81. "s_indirect2direct: \t%i\n"
  82. "\n"
  83. "max_hash_collisions: \t%i\n"
  84. "breads: \t%lu\n"
  85. "bread_misses: \t%lu\n"
  86. "search_by_key: \t%lu\n"
  87. "search_by_key_fs_changed: \t%lu\n"
  88. "search_by_key_restarted: \t%lu\n"
  89. "insert_item_restarted: \t%lu\n"
  90. "paste_into_item_restarted: \t%lu\n"
  91. "cut_from_item_restarted: \t%lu\n"
  92. "delete_solid_item_restarted: \t%lu\n"
  93. "delete_item_restarted: \t%lu\n"
  94. "leaked_oid: \t%lu\n"
  95. "leaves_removable: \t%lu\n",
  96. SF(s_mount_state) == REISERFS_VALID_FS ?
  97. "REISERFS_VALID_FS" : "REISERFS_ERROR_FS",
  98. reiserfs_r5_hash(sb) ? "FORCE_R5 " : "",
  99. reiserfs_rupasov_hash(sb) ? "FORCE_RUPASOV " : "",
  100. reiserfs_tea_hash(sb) ? "FORCE_TEA " : "",
  101. reiserfs_hash_detect(sb) ? "DETECT_HASH " : "",
  102. reiserfs_no_border(sb) ? "NO_BORDER " : "BORDER ",
  103. reiserfs_no_unhashed_relocation(sb) ?
  104. "NO_UNHASHED_RELOCATION " : "",
  105. reiserfs_hashed_relocation(sb) ? "UNHASHED_RELOCATION " : "",
  106. reiserfs_test4(sb) ? "TEST4 " : "",
  107. have_large_tails(sb) ? "TAILS " : have_small_tails(sb) ?
  108. "SMALL_TAILS " : "NO_TAILS ",
  109. replay_only(sb) ? "REPLAY_ONLY " : "",
  110. convert_reiserfs(sb) ? "CONV " : "",
  111. atomic_read(&r->s_generation_counter),
  112. SF(s_disk_reads), SF(s_disk_writes), SF(s_fix_nodes),
  113. SF(s_do_balance), SF(s_unneeded_left_neighbor),
  114. SF(s_good_search_by_key_reada), SF(s_bmaps),
  115. SF(s_bmaps_without_search), SF(s_direct2indirect),
  116. SF(s_indirect2direct), SFP(max_hash_collisions), SFP(breads),
  117. SFP(bread_miss), SFP(search_by_key),
  118. SFP(search_by_key_fs_changed), SFP(search_by_key_restarted),
  119. SFP(insert_item_restarted), SFP(paste_into_item_restarted),
  120. SFP(cut_from_item_restarted),
  121. SFP(delete_solid_item_restarted), SFP(delete_item_restarted),
  122. SFP(leaked_oid), SFP(leaves_removable));
  123. return 0;
  124. }
  125. static int show_per_level(struct seq_file *m, struct super_block *sb)
  126. {
  127. struct reiserfs_sb_info *r = REISERFS_SB(sb);
  128. int level;
  129. seq_printf(m, "level\t"
  130. " balances"
  131. " [sbk: reads"
  132. " fs_changed"
  133. " restarted]"
  134. " free space"
  135. " items"
  136. " can_remove"
  137. " lnum"
  138. " rnum"
  139. " lbytes"
  140. " rbytes"
  141. " get_neig"
  142. " get_neig_res" " need_l_neig" " need_r_neig" "\n");
  143. for (level = 0; level < MAX_HEIGHT; ++level) {
  144. seq_printf(m, "%i\t"
  145. " %12lu"
  146. " %12lu"
  147. " %12lu"
  148. " %12lu"
  149. " %12lu"
  150. " %12lu"
  151. " %12lu"
  152. " %12li"
  153. " %12li"
  154. " %12li"
  155. " %12li"
  156. " %12lu"
  157. " %12lu"
  158. " %12lu"
  159. " %12lu"
  160. "\n",
  161. level,
  162. SFPL(balance_at),
  163. SFPL(sbk_read_at),
  164. SFPL(sbk_fs_changed),
  165. SFPL(sbk_restarted),
  166. SFPL(free_at),
  167. SFPL(items_at),
  168. SFPL(can_node_be_removed),
  169. SFPL(lnum),
  170. SFPL(rnum),
  171. SFPL(lbytes),
  172. SFPL(rbytes),
  173. SFPL(get_neighbors),
  174. SFPL(get_neighbors_restart),
  175. SFPL(need_l_neighbor), SFPL(need_r_neighbor)
  176. );
  177. }
  178. return 0;
  179. }
  180. static int show_bitmap(struct seq_file *m, struct super_block *sb)
  181. {
  182. struct reiserfs_sb_info *r = REISERFS_SB(sb);
  183. seq_printf(m, "free_block: %lu\n"
  184. " scan_bitmap:"
  185. " wait"
  186. " bmap"
  187. " retry"
  188. " stolen"
  189. " journal_hint"
  190. "journal_nohint"
  191. "\n"
  192. " %14lu"
  193. " %14lu"
  194. " %14lu"
  195. " %14lu"
  196. " %14lu"
  197. " %14lu"
  198. " %14lu"
  199. "\n",
  200. SFP(free_block),
  201. SFPF(call),
  202. SFPF(wait),
  203. SFPF(bmap),
  204. SFPF(retry),
  205. SFPF(stolen),
  206. SFPF(in_journal_hint), SFPF(in_journal_nohint));
  207. return 0;
  208. }
  209. static int show_on_disk_super(struct seq_file *m, struct super_block *sb)
  210. {
  211. struct reiserfs_sb_info *sb_info = REISERFS_SB(sb);
  212. struct reiserfs_super_block *rs = sb_info->s_rs;
  213. int hash_code = DFL(s_hash_function_code);
  214. __u32 flags = DJF(s_flags);
  215. seq_printf(m, "block_count: \t%i\n"
  216. "free_blocks: \t%i\n"
  217. "root_block: \t%i\n"
  218. "blocksize: \t%i\n"
  219. "oid_maxsize: \t%i\n"
  220. "oid_cursize: \t%i\n"
  221. "umount_state: \t%i\n"
  222. "magic: \t%10.10s\n"
  223. "fs_state: \t%i\n"
  224. "hash: \t%s\n"
  225. "tree_height: \t%i\n"
  226. "bmap_nr: \t%i\n"
  227. "version: \t%i\n"
  228. "flags: \t%x[%s]\n"
  229. "reserved_for_journal: \t%i\n",
  230. DFL(s_block_count),
  231. DFL(s_free_blocks),
  232. DFL(s_root_block),
  233. DF(s_blocksize),
  234. DF(s_oid_maxsize),
  235. DF(s_oid_cursize),
  236. DF(s_umount_state),
  237. rs->s_v1.s_magic,
  238. DF(s_fs_state),
  239. hash_code == TEA_HASH ? "tea" :
  240. (hash_code == YURA_HASH) ? "rupasov" :
  241. (hash_code == R5_HASH) ? "r5" :
  242. (hash_code == UNSET_HASH) ? "unset" : "unknown",
  243. DF(s_tree_height),
  244. DF(s_bmap_nr),
  245. DF(s_version), flags, (flags & reiserfs_attrs_cleared)
  246. ? "attrs_cleared" : "", DF(s_reserved_for_journal));
  247. return 0;
  248. }
  249. static int show_oidmap(struct seq_file *m, struct super_block *sb)
  250. {
  251. struct reiserfs_sb_info *sb_info = REISERFS_SB(sb);
  252. struct reiserfs_super_block *rs = sb_info->s_rs;
  253. unsigned int mapsize = le16_to_cpu(rs->s_v1.s_oid_cursize);
  254. unsigned long total_used = 0;
  255. int i;
  256. for (i = 0; i < mapsize; ++i) {
  257. __u32 right;
  258. right = (i == mapsize - 1) ? MAX_KEY_OBJECTID : MAP(i + 1);
  259. seq_printf(m, "%s: [ %x .. %x )\n",
  260. (i & 1) ? "free" : "used", MAP(i), right);
  261. if (!(i & 1)) {
  262. total_used += right - MAP(i);
  263. }
  264. }
  265. #if defined( REISERFS_USE_OIDMAPF )
  266. if (sb_info->oidmap.use_file && (sb_info->oidmap.mapf != NULL)) {
  267. loff_t size = sb_info->oidmap.mapf->f_path.dentry->d_inode->i_size;
  268. total_used += size / sizeof(reiserfs_oidinterval_d_t);
  269. }
  270. #endif
  271. seq_printf(m, "total: \t%i [%i/%i] used: %lu [exact]\n",
  272. mapsize,
  273. mapsize, le16_to_cpu(rs->s_v1.s_oid_maxsize), total_used);
  274. return 0;
  275. }
  276. static int show_journal(struct seq_file *m, struct super_block *sb)
  277. {
  278. struct reiserfs_sb_info *r = REISERFS_SB(sb);
  279. struct reiserfs_super_block *rs = r->s_rs;
  280. struct journal_params *jp = &rs->s_v1.s_journal;
  281. char b[BDEVNAME_SIZE];
  282. seq_printf(m, /* on-disk fields */
  283. "jp_journal_1st_block: \t%i\n"
  284. "jp_journal_dev: \t%s[%x]\n"
  285. "jp_journal_size: \t%i\n"
  286. "jp_journal_trans_max: \t%i\n"
  287. "jp_journal_magic: \t%i\n"
  288. "jp_journal_max_batch: \t%i\n"
  289. "jp_journal_max_commit_age: \t%i\n"
  290. "jp_journal_max_trans_age: \t%i\n"
  291. /* incore fields */
  292. "j_1st_reserved_block: \t%i\n"
  293. "j_state: \t%li\n"
  294. "j_trans_id: \t%lu\n"
  295. "j_mount_id: \t%lu\n"
  296. "j_start: \t%lu\n"
  297. "j_len: \t%lu\n"
  298. "j_len_alloc: \t%lu\n"
  299. "j_wcount: \t%i\n"
  300. "j_bcount: \t%lu\n"
  301. "j_first_unflushed_offset: \t%lu\n"
  302. "j_last_flush_trans_id: \t%lu\n"
  303. "j_trans_start_time: \t%li\n"
  304. "j_list_bitmap_index: \t%i\n"
  305. "j_must_wait: \t%i\n"
  306. "j_next_full_flush: \t%i\n"
  307. "j_next_async_flush: \t%i\n"
  308. "j_cnode_used: \t%i\n" "j_cnode_free: \t%i\n" "\n"
  309. /* reiserfs_proc_info_data_t.journal fields */
  310. "in_journal: \t%12lu\n"
  311. "in_journal_bitmap: \t%12lu\n"
  312. "in_journal_reusable: \t%12lu\n"
  313. "lock_journal: \t%12lu\n"
  314. "lock_journal_wait: \t%12lu\n"
  315. "journal_begin: \t%12lu\n"
  316. "journal_relock_writers: \t%12lu\n"
  317. "journal_relock_wcount: \t%12lu\n"
  318. "mark_dirty: \t%12lu\n"
  319. "mark_dirty_already: \t%12lu\n"
  320. "mark_dirty_notjournal: \t%12lu\n"
  321. "restore_prepared: \t%12lu\n"
  322. "prepare: \t%12lu\n"
  323. "prepare_retry: \t%12lu\n",
  324. DJP(jp_journal_1st_block),
  325. bdevname(SB_JOURNAL(sb)->j_dev_bd, b),
  326. DJP(jp_journal_dev),
  327. DJP(jp_journal_size),
  328. DJP(jp_journal_trans_max),
  329. DJP(jp_journal_magic),
  330. DJP(jp_journal_max_batch),
  331. SB_JOURNAL(sb)->j_max_commit_age,
  332. DJP(jp_journal_max_trans_age),
  333. JF(j_1st_reserved_block),
  334. JF(j_state),
  335. JF(j_trans_id),
  336. JF(j_mount_id),
  337. JF(j_start),
  338. JF(j_len),
  339. JF(j_len_alloc),
  340. atomic_read(&r->s_journal->j_wcount),
  341. JF(j_bcount),
  342. JF(j_first_unflushed_offset),
  343. JF(j_last_flush_trans_id),
  344. JF(j_trans_start_time),
  345. JF(j_list_bitmap_index),
  346. JF(j_must_wait),
  347. JF(j_next_full_flush),
  348. JF(j_next_async_flush),
  349. JF(j_cnode_used),
  350. JF(j_cnode_free),
  351. SFPJ(in_journal),
  352. SFPJ(in_journal_bitmap),
  353. SFPJ(in_journal_reusable),
  354. SFPJ(lock_journal),
  355. SFPJ(lock_journal_wait),
  356. SFPJ(journal_being),
  357. SFPJ(journal_relock_writers),
  358. SFPJ(journal_relock_wcount),
  359. SFPJ(mark_dirty),
  360. SFPJ(mark_dirty_already),
  361. SFPJ(mark_dirty_notjournal),
  362. SFPJ(restore_prepared), SFPJ(prepare), SFPJ(prepare_retry)
  363. );
  364. return 0;
  365. }
  366. /* iterator */
  367. static int test_sb(struct super_block *sb, void *data)
  368. {
  369. return data == sb;
  370. }
  371. static int set_sb(struct super_block *sb, void *data)
  372. {
  373. return -ENOENT;
  374. }
  375. static void *r_start(struct seq_file *m, loff_t * pos)
  376. {
  377. struct proc_dir_entry *de = m->private;
  378. struct super_block *s = de->parent->data;
  379. loff_t l = *pos;
  380. if (l)
  381. return NULL;
  382. if (IS_ERR(sget(&reiserfs_fs_type, test_sb, set_sb, s)))
  383. return NULL;
  384. up_write(&s->s_umount);
  385. if (de->deleted) {
  386. deactivate_super(s);
  387. return NULL;
  388. }
  389. return s;
  390. }
  391. static void *r_next(struct seq_file *m, void *v, loff_t * pos)
  392. {
  393. ++*pos;
  394. if (v)
  395. deactivate_super(v);
  396. return NULL;
  397. }
  398. static void r_stop(struct seq_file *m, void *v)
  399. {
  400. if (v)
  401. deactivate_super(v);
  402. }
  403. static int r_show(struct seq_file *m, void *v)
  404. {
  405. struct proc_dir_entry *de = m->private;
  406. int (*show) (struct seq_file *, struct super_block *) = de->data;
  407. return show(m, v);
  408. }
  409. static struct seq_operations r_ops = {
  410. .start = r_start,
  411. .next = r_next,
  412. .stop = r_stop,
  413. .show = r_show,
  414. };
  415. static int r_open(struct inode *inode, struct file *file)
  416. {
  417. int ret = seq_open(file, &r_ops);
  418. if (!ret) {
  419. struct seq_file *m = file->private_data;
  420. m->private = PDE(inode);
  421. }
  422. return ret;
  423. }
  424. static const struct file_operations r_file_operations = {
  425. .open = r_open,
  426. .read = seq_read,
  427. .llseek = seq_lseek,
  428. .release = seq_release,
  429. };
  430. static struct proc_dir_entry *proc_info_root = NULL;
  431. static const char proc_info_root_name[] = "fs/reiserfs";
  432. static void add_file(struct super_block *sb, char *name,
  433. int (*func) (struct seq_file *, struct super_block *))
  434. {
  435. struct proc_dir_entry *de;
  436. de = create_proc_entry(name, 0, REISERFS_SB(sb)->procdir);
  437. if (de) {
  438. de->data = func;
  439. de->proc_fops = &r_file_operations;
  440. }
  441. }
  442. int reiserfs_proc_info_init(struct super_block *sb)
  443. {
  444. char b[BDEVNAME_SIZE];
  445. char *s;
  446. /* Some block devices use /'s */
  447. strlcpy(b, reiserfs_bdevname(sb), BDEVNAME_SIZE);
  448. s = strchr(b, '/');
  449. if (s)
  450. *s = '!';
  451. spin_lock_init(&__PINFO(sb).lock);
  452. REISERFS_SB(sb)->procdir = proc_mkdir(b, proc_info_root);
  453. if (REISERFS_SB(sb)->procdir) {
  454. REISERFS_SB(sb)->procdir->owner = THIS_MODULE;
  455. REISERFS_SB(sb)->procdir->data = sb;
  456. add_file(sb, "version", show_version);
  457. add_file(sb, "super", show_super);
  458. add_file(sb, "per-level", show_per_level);
  459. add_file(sb, "bitmap", show_bitmap);
  460. add_file(sb, "on-disk-super", show_on_disk_super);
  461. add_file(sb, "oidmap", show_oidmap);
  462. add_file(sb, "journal", show_journal);
  463. return 0;
  464. }
  465. reiserfs_warning(sb, "reiserfs: cannot create /proc/%s/%s",
  466. proc_info_root_name, b);
  467. return 1;
  468. }
  469. int reiserfs_proc_info_done(struct super_block *sb)
  470. {
  471. struct proc_dir_entry *de = REISERFS_SB(sb)->procdir;
  472. char b[BDEVNAME_SIZE];
  473. char *s;
  474. /* Some block devices use /'s */
  475. strlcpy(b, reiserfs_bdevname(sb), BDEVNAME_SIZE);
  476. s = strchr(b, '/');
  477. if (s)
  478. *s = '!';
  479. if (de) {
  480. remove_proc_entry("journal", de);
  481. remove_proc_entry("oidmap", de);
  482. remove_proc_entry("on-disk-super", de);
  483. remove_proc_entry("bitmap", de);
  484. remove_proc_entry("per-level", de);
  485. remove_proc_entry("super", de);
  486. remove_proc_entry("version", de);
  487. }
  488. spin_lock(&__PINFO(sb).lock);
  489. __PINFO(sb).exiting = 1;
  490. spin_unlock(&__PINFO(sb).lock);
  491. if (proc_info_root) {
  492. remove_proc_entry(b, proc_info_root);
  493. REISERFS_SB(sb)->procdir = NULL;
  494. }
  495. return 0;
  496. }
  497. struct proc_dir_entry *reiserfs_proc_register_global(char *name,
  498. read_proc_t * func)
  499. {
  500. return (proc_info_root) ? create_proc_read_entry(name, 0,
  501. proc_info_root,
  502. func, NULL) : NULL;
  503. }
  504. void reiserfs_proc_unregister_global(const char *name)
  505. {
  506. remove_proc_entry(name, proc_info_root);
  507. }
  508. int reiserfs_proc_info_global_init(void)
  509. {
  510. if (proc_info_root == NULL) {
  511. proc_info_root = proc_mkdir(proc_info_root_name, NULL);
  512. if (proc_info_root) {
  513. proc_info_root->owner = THIS_MODULE;
  514. } else {
  515. reiserfs_warning(NULL,
  516. "reiserfs: cannot create /proc/%s",
  517. proc_info_root_name);
  518. return 1;
  519. }
  520. }
  521. return 0;
  522. }
  523. int reiserfs_proc_info_global_done(void)
  524. {
  525. if (proc_info_root != NULL) {
  526. proc_info_root = NULL;
  527. remove_proc_entry(proc_info_root_name, NULL);
  528. }
  529. return 0;
  530. }
  531. /* REISERFS_PROC_INFO */
  532. #else
  533. int reiserfs_proc_info_init(struct super_block *sb)
  534. {
  535. return 0;
  536. }
  537. int reiserfs_proc_info_done(struct super_block *sb)
  538. {
  539. return 0;
  540. }
  541. struct proc_dir_entry *reiserfs_proc_register_global(char *name,
  542. read_proc_t * func)
  543. {
  544. return NULL;
  545. }
  546. void reiserfs_proc_unregister_global(const char *name)
  547. {;
  548. }
  549. int reiserfs_proc_info_global_init(void)
  550. {
  551. return 0;
  552. }
  553. int reiserfs_proc_info_global_done(void)
  554. {
  555. return 0;
  556. }
  557. int reiserfs_global_version_in_proc(char *buffer, char **start,
  558. off_t offset,
  559. int count, int *eof, void *data)
  560. {
  561. return 0;
  562. }
  563. /* REISERFS_PROC_INFO */
  564. #endif
  565. /*
  566. * $Log: procfs.c,v $
  567. * Revision 1.1.8.2 2001/07/15 17:08:42 god
  568. * . use get_super() in procfs.c
  569. * . remove remove_save_link() from reiserfs_do_truncate()
  570. *
  571. * I accept terms and conditions stated in the Legal Agreement
  572. * (available at http://www.namesys.com/legalese.html)
  573. *
  574. * Revision 1.1.8.1 2001/07/11 16:48:50 god
  575. * proc info support
  576. *
  577. * I accept terms and conditions stated in the Legal Agreement
  578. * (available at http://www.namesys.com/legalese.html)
  579. *
  580. */
  581. /*
  582. * Make Linus happy.
  583. * Local variables:
  584. * c-indentation-style: "K&R"
  585. * mode-name: "LC"
  586. * c-basic-offset: 8
  587. * tab-width: 8
  588. * End:
  589. */