dir.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) dir.c (5955102c9984fa081b2d570cfac75c97eecf8f3b)
1/*
2 * linux/fs/hfs/dir.c
3 *
4 * Copyright (C) 1995-1997 Paul H. Hargrove
5 * (C) 2003 Ardis Technologies <roman@ardistech.com>
6 * This file may be distributed under the terms of the GNU General Public License.
7 *
8 * This file contains directory-related functions independent of which

--- 159 unchanged lines hidden (view full) ---

168 hfs_find_exit(&fd);
169 return err;
170}
171
172static int hfs_dir_release(struct inode *inode, struct file *file)
173{
174 struct hfs_readdir_data *rd = file->private_data;
175 if (rd) {
1/*
2 * linux/fs/hfs/dir.c
3 *
4 * Copyright (C) 1995-1997 Paul H. Hargrove
5 * (C) 2003 Ardis Technologies <roman@ardistech.com>
6 * This file may be distributed under the terms of the GNU General Public License.
7 *
8 * This file contains directory-related functions independent of which

--- 159 unchanged lines hidden (view full) ---

168 hfs_find_exit(&fd);
169 return err;
170}
171
172static int hfs_dir_release(struct inode *inode, struct file *file)
173{
174 struct hfs_readdir_data *rd = file->private_data;
175 if (rd) {
176 mutex_lock(&inode->i_mutex);
176 inode_lock(inode);
177 list_del(&rd->list);
177 list_del(&rd->list);
178 mutex_unlock(&inode->i_mutex);
178 inode_unlock(inode);
179 kfree(rd);
180 }
181 return 0;
182}
183
184/*
185 * hfs_create()
186 *

--- 133 unchanged lines hidden ---
179 kfree(rd);
180 }
181 return 0;
182}
183
184/*
185 * hfs_create()
186 *

--- 133 unchanged lines hidden ---