Commit a73bd7d5 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://kernel.bkbits.net/davem/net-2.5

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 797df80e 59194a26
...@@ -545,9 +545,7 @@ static int __init drm_init( void ) ...@@ -545,9 +545,7 @@ static int __init drm_init( void )
drm_device_t *dev; drm_device_t *dev;
int i; int i;
#if __HAVE_CTX_BITMAP
int retcode; int retcode;
#endif
DRM_DEBUG( "\n" ); DRM_DEBUG( "\n" );
#ifdef MODULE #ifdef MODULE
...@@ -626,9 +624,11 @@ static int __init drm_init( void ) ...@@ -626,9 +624,11 @@ static int __init drm_init( void )
return 0; return 0;
#if (__REALLY_HAVE_AGP && __MUST_HAVE_AGP) || __HAVE_CTX_BITMAP
fail: fail:
DRM(stub_unregister)(DRM(minor)[i]); DRM(stub_unregister)(DRM(minor)[i]);
DRM(takedown)( dev ); DRM(takedown)( dev );
#endif
fail_reg: fail_reg:
kfree (DRM(device)); kfree (DRM(device));
......
...@@ -2978,7 +2978,6 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir) ...@@ -2978,7 +2978,6 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
int d_namleft, len, outlen; int d_namleft, len, outlen;
unsigned long dirent_buf; unsigned long dirent_buf;
char *name_ptr; char *name_ptr;
int dtlhdrdatalen;
u32 dir_index; u32 dir_index;
int do_index = 0; int do_index = 0;
uint loop_count = 0; uint loop_count = 0;
...@@ -2998,7 +2997,6 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir) ...@@ -2998,7 +2997,6 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
* -1 = End of directory * -1 = End of directory
*/ */
do_index = 1; do_index = 1;
dtlhdrdatalen = DTLHDRDATALEN;
dir_index = (u32) filp->f_pos; dir_index = (u32) filp->f_pos;
...@@ -3083,8 +3081,6 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir) ...@@ -3083,8 +3081,6 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
* pn > 0: Real entries, pn=1 -> leftmost page * pn > 0: Real entries, pn=1 -> leftmost page
* pn = index = -1: No more entries * pn = index = -1: No more entries
*/ */
dtlhdrdatalen = DTLHDRDATALEN_LEGACY;
dtpos = filp->f_pos; dtpos = filp->f_pos;
if (dtpos == 0) { if (dtpos == 0) {
/* build "." entry */ /* build "." entry */
......
...@@ -91,7 +91,7 @@ extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, boolean_t abnr) ...@@ -91,7 +91,7 @@ extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, boolean_t abnr)
{ {
struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb); struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb);
s64 nxlen, nxaddr, xoff, hint, xaddr = 0; s64 nxlen, nxaddr, xoff, hint, xaddr = 0;
int rc, nbperpage; int rc;
int xflag; int xflag;
/* This blocks if we are low on resources */ /* This blocks if we are low on resources */
...@@ -104,9 +104,6 @@ extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, boolean_t abnr) ...@@ -104,9 +104,6 @@ extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, boolean_t abnr)
if (xlen > MAXXLEN) if (xlen > MAXXLEN)
xlen = MAXXLEN; xlen = MAXXLEN;
/* get the number of blocks per page */
nbperpage = sbi->nbperpage;
/* get the page's starting extent offset */ /* get the page's starting extent offset */
xoff = pno << sbi->l2nbperpage; xoff = pno << sbi->l2nbperpage;
......
...@@ -2966,7 +2966,6 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno, ...@@ -2966,7 +2966,6 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno,
struct buffer_head *bh; struct buffer_head *bh;
struct inode *ip; struct inode *ip;
tid_t tid; tid_t tid;
int rc;
/* if AIT2 ipmap2 is bad, do not try to update it */ /* if AIT2 ipmap2 is bad, do not try to update it */
if (JFS_SBI(sb)->mntflag & JFS_BAD_SAIT) /* s_flag */ if (JFS_SBI(sb)->mntflag & JFS_BAD_SAIT) /* s_flag */
...@@ -2974,7 +2973,7 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno, ...@@ -2974,7 +2973,7 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno,
ip = diReadSpecial(sb, FILESYSTEM_I, 1); ip = diReadSpecial(sb, FILESYSTEM_I, 1);
if (ip == NULL) { if (ip == NULL) {
JFS_SBI(sb)->mntflag |= JFS_BAD_SAIT; JFS_SBI(sb)->mntflag |= JFS_BAD_SAIT;
if ((rc = readSuper(sb, &bh))) if (readSuper(sb, &bh))
return; return;
j_sb = (struct jfs_superblock *)bh->b_data; j_sb = (struct jfs_superblock *)bh->b_data;
j_sb->s_flag |= JFS_BAD_SAIT; j_sb->s_flag |= JFS_BAD_SAIT;
...@@ -2988,7 +2987,7 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno, ...@@ -2988,7 +2987,7 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno,
/* start transaction */ /* start transaction */
tid = txBegin(sb, COMMIT_FORCE); tid = txBegin(sb, COMMIT_FORCE);
/* update the inode map addressing structure to point to it */ /* update the inode map addressing structure to point to it */
if ((rc = xtInsert(tid, ip, 0, blkno, xlen, xaddr, 0))) { if (xtInsert(tid, ip, 0, blkno, xlen, xaddr, 0)) {
JFS_SBI(sb)->mntflag |= JFS_BAD_SAIT; JFS_SBI(sb)->mntflag |= JFS_BAD_SAIT;
txAbort(tid, 1); txAbort(tid, 1);
goto cleanup; goto cleanup;
...@@ -2997,7 +2996,7 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno, ...@@ -2997,7 +2996,7 @@ static void duplicateIXtree(struct super_block *sb, s64 blkno,
/* update the inode map's inode to reflect the extension */ /* update the inode map's inode to reflect the extension */
ip->i_size += PSIZE; ip->i_size += PSIZE;
ip->i_blocks += LBLK2PBLK(sb, xlen); ip->i_blocks += LBLK2PBLK(sb, xlen);
rc = txCommit(tid, 1, &ip, COMMIT_FORCE); txCommit(tid, 1, &ip, COMMIT_FORCE);
cleanup: cleanup:
txEnd(tid); txEnd(tid);
diFreeSpecial(ip); diFreeSpecial(ip);
......
...@@ -380,8 +380,8 @@ tid_t txBegin(struct super_block *sb, int flag) ...@@ -380,8 +380,8 @@ tid_t txBegin(struct super_block *sb, int flag)
tblk = tid_to_tblock(t); tblk = tid_to_tblock(t);
if ((tblk->next == 0) && (current != jfsCommitTask)) { if ((tblk->next == 0) && !(flag & COMMIT_FORCE)) {
/* Save one tblk for jfsCommit thread */ /* Don't let a non-forced transaction take the last tblk */
jfs_info("txBegin: waiting for free tid"); jfs_info("txBegin: waiting for free tid");
INCREMENT(TxStat.txBegin_freetid); INCREMENT(TxStat.txBegin_freetid);
TXN_SLEEP(&TxAnchor.freewait); TXN_SLEEP(&TxAnchor.freewait);
...@@ -1553,12 +1553,10 @@ int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, ...@@ -1553,12 +1553,10 @@ int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
struct tlock * tlck) struct tlock * tlck)
{ {
struct inode *ip;
struct metapage *mp; struct metapage *mp;
struct pxd_lock *pxdlock; struct pxd_lock *pxdlock;
pxd_t *pxd; pxd_t *pxd;
ip = tlck->ip;
mp = tlck->mp; mp = tlck->mp;
/* initialize as REDOPAGE/NOREDOPAGE record format */ /* initialize as REDOPAGE/NOREDOPAGE record format */
...@@ -2894,7 +2892,6 @@ void txQuiesce(struct super_block *sb) ...@@ -2894,7 +2892,6 @@ void txQuiesce(struct super_block *sb)
struct inode *ip; struct inode *ip;
struct jfs_inode_info *jfs_ip; struct jfs_inode_info *jfs_ip;
struct jfs_log *log = JFS_SBI(sb)->log; struct jfs_log *log = JFS_SBI(sb)->log;
int rc;
tid_t tid; tid_t tid;
set_bit(log_QUIESCE, &log->flag); set_bit(log_QUIESCE, &log->flag);
...@@ -2914,7 +2911,7 @@ void txQuiesce(struct super_block *sb) ...@@ -2914,7 +2911,7 @@ void txQuiesce(struct super_block *sb)
TXN_UNLOCK(); TXN_UNLOCK();
tid = txBegin(ip->i_sb, COMMIT_INODE | COMMIT_FORCE); tid = txBegin(ip->i_sb, COMMIT_INODE | COMMIT_FORCE);
down(&jfs_ip->commit_sem); down(&jfs_ip->commit_sem);
rc = txCommit(tid, 1, &ip, 0); txCommit(tid, 1, &ip, 0);
txEnd(tid); txEnd(tid);
up(&jfs_ip->commit_sem); up(&jfs_ip->commit_sem);
/* /*
...@@ -2994,8 +2991,7 @@ int jfs_sync(void *arg) ...@@ -2994,8 +2991,7 @@ int jfs_sync(void *arg)
* when it is committed * when it is committed
*/ */
TXN_UNLOCK(); TXN_UNLOCK();
tid = txBegin(ip->i_sb, tid = txBegin(ip->i_sb, COMMIT_INODE);
COMMIT_INODE | COMMIT_FORCE);
rc = txCommit(tid, 1, &ip, 0); rc = txCommit(tid, 1, &ip, 0);
txEnd(tid); txEnd(tid);
up(&jfs_ip->commit_sem); up(&jfs_ip->commit_sem);
......
...@@ -3268,14 +3268,13 @@ static int xtRelink(tid_t tid, struct inode *ip, xtpage_t * p) ...@@ -3268,14 +3268,13 @@ static int xtRelink(tid_t tid, struct inode *ip, xtpage_t * p)
void xtInitRoot(tid_t tid, struct inode *ip) void xtInitRoot(tid_t tid, struct inode *ip)
{ {
xtpage_t *p; xtpage_t *p;
struct tlock *tlck;
/* /*
* acquire a transaction lock on the root * acquire a transaction lock on the root
* *
* action: * action:
*/ */
tlck = txLock(tid, ip, (struct metapage *) &JFS_IP(ip)->bxflag, txLock(tid, ip, (struct metapage *) &JFS_IP(ip)->bxflag,
tlckXTREE | tlckNEW); tlckXTREE | tlckNEW);
p = &JFS_IP(ip)->i_xtroot; p = &JFS_IP(ip)->i_xtroot;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment