diff options
author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /fs/readdir.c | |
parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/readdir.c')
-rw-r--r-- | fs/readdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/readdir.c b/fs/readdir.c index b03579bc0210..b6109329b607 100644 --- a/fs/readdir.c +++ b/fs/readdir.c | |||
@@ -30,13 +30,13 @@ int vfs_readdir(struct file *file, filldir_t filler, void *buf) | |||
30 | if (res) | 30 | if (res) |
31 | goto out; | 31 | goto out; |
32 | 32 | ||
33 | down(&inode->i_sem); | 33 | mutex_lock(&inode->i_mutex); |
34 | res = -ENOENT; | 34 | res = -ENOENT; |
35 | if (!IS_DEADDIR(inode)) { | 35 | if (!IS_DEADDIR(inode)) { |
36 | res = file->f_op->readdir(file, buf, filler); | 36 | res = file->f_op->readdir(file, buf, filler); |
37 | file_accessed(file); | 37 | file_accessed(file); |
38 | } | 38 | } |
39 | up(&inode->i_sem); | 39 | mutex_unlock(&inode->i_mutex); |
40 | out: | 40 | out: |
41 | return res; | 41 | return res; |
42 | } | 42 | } |