Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61882
b: refs/heads/master
c: 5f47c7e
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jul 19, 2007
1 parent 2beb129 commit dc8dace
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c65c5131b349b08f3292b1cd10239cf376bfcb15
refs/heads/master: 5f47c7eac65a45e33d7fe390effe75ec5c74f8bf
18 changes: 9 additions & 9 deletions trunk/fs/coda/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,20 +510,20 @@ static int coda_venus_readdir(struct file *coda_file, void *buf,
vdir = kmalloc(sizeof(*vdir), GFP_KERNEL);
if (!vdir) return -ENOMEM;

switch (coda_file->f_pos) {
case 0:
if (coda_file->f_pos == 0) {
ret = filldir(buf, ".", 1, 0, de->d_inode->i_ino, DT_DIR);
if (ret < 0) break;
if (ret < 0)
goto out;
result++;
coda_file->f_pos++;
/* fallthrough */
case 1:
}
if (coda_file->f_pos == 1) {
ret = filldir(buf, "..", 2, 1, de->d_parent->d_inode->i_ino, DT_DIR);
if (ret < 0) break;
if (ret < 0)
goto out;
result++;
coda_file->f_pos++;
/* fallthrough */
default:
}
while (1) {
/* read entries from the directory file */
ret = kernel_read(host_file, coda_file->f_pos - 2, (char *)vdir,
Expand Down Expand Up @@ -578,7 +578,7 @@ static int coda_venus_readdir(struct file *coda_file, void *buf,
* we've already established it is non-zero. */
coda_file->f_pos += vdir->d_reclen;
}
}
out:
kfree(vdir);
return result ? result : ret;
}
Expand Down
10 changes: 5 additions & 5 deletions trunk/fs/coda/upcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ int venus_statfs(struct dentry *dentry, struct kstatfs *sfs)
/*
* coda_upcall and coda_downcall routines.
*/
static void block_signals(sigset_t *old)
static void coda_block_signals(sigset_t *old)
{
spin_lock_irq(&current->sighand->siglock);
*old = current->blocked;
Expand All @@ -646,7 +646,7 @@ static void block_signals(sigset_t *old)
spin_unlock_irq(&current->sighand->siglock);
}

static void unblock_signals(sigset_t *old)
static void coda_unblock_signals(sigset_t *old)
{
spin_lock_irq(&current->sighand->siglock);
current->blocked = *old;
Expand All @@ -672,7 +672,7 @@ static inline void coda_waitfor_upcall(struct upc_req *req)
sigset_t old;
int blocked;

block_signals(&old);
coda_block_signals(&old);
blocked = 1;

add_wait_queue(&req->uc_sleep, &wait);
Expand All @@ -689,7 +689,7 @@ static inline void coda_waitfor_upcall(struct upc_req *req)
if (blocked && time_after(jiffies, timeout) &&
CODA_INTERRUPTIBLE(req))
{
unblock_signals(&old);
coda_unblock_signals(&old);
blocked = 0;
}

Expand All @@ -704,7 +704,7 @@ static inline void coda_waitfor_upcall(struct upc_req *req)
schedule();
}
if (blocked)
unblock_signals(&old);
coda_unblock_signals(&old);

remove_wait_queue(&req->uc_sleep, &wait);
set_current_state(TASK_RUNNING);
Expand Down

0 comments on commit dc8dace

Please sign in to comment.