Loading fs/jfs/file.c +3 −6 Original line number Diff line number Diff line /* * Copyright (c) International Business Machines Corp., 2000-2002 * Portions Copyright (c) Christoph Hellwig, 2001-2002 * Copyright (C) International Business Machines Corp., 2000-2002 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading @@ -19,16 +19,13 @@ #include <linux/fs.h> #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_dmap.h" #include "jfs_txnmgr.h" #include "jfs_xattr.h" #include "jfs_acl.h" #include "jfs_debug.h" extern int jfs_commit_inode(struct inode *, int); extern void jfs_truncate(struct inode *); int jfs_fsync(struct file *file, struct dentry *dentry, int datasync) { struct inode *inode = dentry->d_inode; Loading fs/jfs/inode.c +2 −9 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ #include <linux/pagemap.h> #include <linux/quotaops.h> #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_filsys.h" #include "jfs_imap.h" #include "jfs_extent.h" Loading @@ -30,14 +31,6 @@ #include "jfs_debug.h" extern struct inode_operations jfs_dir_inode_operations; extern struct inode_operations jfs_file_inode_operations; extern struct inode_operations jfs_symlink_inode_operations; extern struct file_operations jfs_dir_operations; extern struct file_operations jfs_file_operations; struct address_space_operations jfs_aops; extern int freeZeroLink(struct inode *); void jfs_read_inode(struct inode *inode) { if (diRead(inode)) { Loading Loading @@ -136,7 +129,7 @@ void jfs_delete_inode(struct inode *inode) jfs_info("In jfs_delete_inode, inode = 0x%p", inode); if (test_cflag(COMMIT_Freewmap, inode)) freeZeroLink(inode); jfs_free_zero_link(inode); diFree(inode); Loading fs/jfs/jfs_debug.c +0 −10 Original line number Diff line number Diff line Loading @@ -58,8 +58,6 @@ void dump_mem(char *label, void *data, int length) static struct proc_dir_entry *base; #ifdef CONFIG_JFS_DEBUG extern read_proc_t jfs_txanchor_read; static int loglevel_read(char *page, char **start, off_t off, int count, int *eof, void *data) { Loading Loading @@ -97,14 +95,6 @@ static int loglevel_write(struct file *file, const char __user *buffer, } #endif #ifdef CONFIG_JFS_STATISTICS extern read_proc_t jfs_lmstats_read; extern read_proc_t jfs_txstats_read; extern read_proc_t jfs_xtstat_read; extern read_proc_t jfs_mpstat_read; #endif static struct { const char *name; read_proc_t *read_fn; Loading fs/jfs/jfs_debug.h +11 −4 Original line number Diff line number Diff line /* * Copyright (c) International Business Machines Corp., 2000-2002 * Portions Copyright (c) Christoph Hellwig, 2001-2002 * Copyright (C) International Business Machines Corp., 2000-2002 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading Loading @@ -32,6 +32,8 @@ */ #if defined(CONFIG_PROC_FS) && (defined(CONFIG_JFS_DEBUG) || defined(CONFIG_JFS_STATISTICS)) #define PROC_FS_JFS extern void jfs_proc_init(void); extern void jfs_proc_clean(void); #endif /* Loading Loading @@ -65,8 +67,8 @@ extern int jfsloglevel; /* dump memory contents */ extern void dump_mem(char *label, void *data, int length); extern int jfs_txanchor_read(char *, char **, off_t, int, int *, void *); /* information message: e.g., configuration, major event */ #define jfs_info(fmt, arg...) do { \ Loading Loading @@ -110,6 +112,11 @@ extern void dump_mem(char *label, void *data, int length); * ---------- */ #ifdef CONFIG_JFS_STATISTICS extern int jfs_lmstats_read(char *, char **, off_t, int, int *, void *); extern int jfs_txstats_read(char *, char **, off_t, int, int *, void *); extern int jfs_mpstat_read(char *, char **, off_t, int, int *, void *); extern int jfs_xtstat_read(char *, char **, off_t, int, int *, void *); #define INCREMENT(x) ((x)++) #define DECREMENT(x) ((x)--) #define HIGHWATERMARK(x,y) ((x) = max((x), (y))) Loading fs/jfs/jfs_extent.c +1 −6 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #include <linux/fs.h> #include <linux/quotaops.h> #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_superblock.h" #include "jfs_dmap.h" #include "jfs_extent.h" Loading @@ -33,12 +34,6 @@ static int extBrealloc(struct inode *, s64, s64, s64 *, s64 *); #endif static s64 extRoundDown(s64 nb); /* * external references */ extern int jfs_commit_inode(struct inode *, int); #define DPD(a) (printk("(a): %d\n",(a))) #define DPC(a) (printk("(a): %c\n",(a))) #define DPL1(a) \ Loading Loading
fs/jfs/file.c +3 −6 Original line number Diff line number Diff line /* * Copyright (c) International Business Machines Corp., 2000-2002 * Portions Copyright (c) Christoph Hellwig, 2001-2002 * Copyright (C) International Business Machines Corp., 2000-2002 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading @@ -19,16 +19,13 @@ #include <linux/fs.h> #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_dmap.h" #include "jfs_txnmgr.h" #include "jfs_xattr.h" #include "jfs_acl.h" #include "jfs_debug.h" extern int jfs_commit_inode(struct inode *, int); extern void jfs_truncate(struct inode *); int jfs_fsync(struct file *file, struct dentry *dentry, int datasync) { struct inode *inode = dentry->d_inode; Loading
fs/jfs/inode.c +2 −9 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ #include <linux/pagemap.h> #include <linux/quotaops.h> #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_filsys.h" #include "jfs_imap.h" #include "jfs_extent.h" Loading @@ -30,14 +31,6 @@ #include "jfs_debug.h" extern struct inode_operations jfs_dir_inode_operations; extern struct inode_operations jfs_file_inode_operations; extern struct inode_operations jfs_symlink_inode_operations; extern struct file_operations jfs_dir_operations; extern struct file_operations jfs_file_operations; struct address_space_operations jfs_aops; extern int freeZeroLink(struct inode *); void jfs_read_inode(struct inode *inode) { if (diRead(inode)) { Loading Loading @@ -136,7 +129,7 @@ void jfs_delete_inode(struct inode *inode) jfs_info("In jfs_delete_inode, inode = 0x%p", inode); if (test_cflag(COMMIT_Freewmap, inode)) freeZeroLink(inode); jfs_free_zero_link(inode); diFree(inode); Loading
fs/jfs/jfs_debug.c +0 −10 Original line number Diff line number Diff line Loading @@ -58,8 +58,6 @@ void dump_mem(char *label, void *data, int length) static struct proc_dir_entry *base; #ifdef CONFIG_JFS_DEBUG extern read_proc_t jfs_txanchor_read; static int loglevel_read(char *page, char **start, off_t off, int count, int *eof, void *data) { Loading Loading @@ -97,14 +95,6 @@ static int loglevel_write(struct file *file, const char __user *buffer, } #endif #ifdef CONFIG_JFS_STATISTICS extern read_proc_t jfs_lmstats_read; extern read_proc_t jfs_txstats_read; extern read_proc_t jfs_xtstat_read; extern read_proc_t jfs_mpstat_read; #endif static struct { const char *name; read_proc_t *read_fn; Loading
fs/jfs/jfs_debug.h +11 −4 Original line number Diff line number Diff line /* * Copyright (c) International Business Machines Corp., 2000-2002 * Portions Copyright (c) Christoph Hellwig, 2001-2002 * Copyright (C) International Business Machines Corp., 2000-2002 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading Loading @@ -32,6 +32,8 @@ */ #if defined(CONFIG_PROC_FS) && (defined(CONFIG_JFS_DEBUG) || defined(CONFIG_JFS_STATISTICS)) #define PROC_FS_JFS extern void jfs_proc_init(void); extern void jfs_proc_clean(void); #endif /* Loading Loading @@ -65,8 +67,8 @@ extern int jfsloglevel; /* dump memory contents */ extern void dump_mem(char *label, void *data, int length); extern int jfs_txanchor_read(char *, char **, off_t, int, int *, void *); /* information message: e.g., configuration, major event */ #define jfs_info(fmt, arg...) do { \ Loading Loading @@ -110,6 +112,11 @@ extern void dump_mem(char *label, void *data, int length); * ---------- */ #ifdef CONFIG_JFS_STATISTICS extern int jfs_lmstats_read(char *, char **, off_t, int, int *, void *); extern int jfs_txstats_read(char *, char **, off_t, int, int *, void *); extern int jfs_mpstat_read(char *, char **, off_t, int, int *, void *); extern int jfs_xtstat_read(char *, char **, off_t, int, int *, void *); #define INCREMENT(x) ((x)++) #define DECREMENT(x) ((x)--) #define HIGHWATERMARK(x,y) ((x) = max((x), (y))) Loading
fs/jfs/jfs_extent.c +1 −6 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ #include <linux/fs.h> #include <linux/quotaops.h> #include "jfs_incore.h" #include "jfs_inode.h" #include "jfs_superblock.h" #include "jfs_dmap.h" #include "jfs_extent.h" Loading @@ -33,12 +34,6 @@ static int extBrealloc(struct inode *, s64, s64, s64 *, s64 *); #endif static s64 extRoundDown(s64 nb); /* * external references */ extern int jfs_commit_inode(struct inode *, int); #define DPD(a) (printk("(a): %d\n",(a))) #define DPC(a) (printk("(a): %c\n",(a))) #define DPL1(a) \ Loading