aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_file.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c
index 70662371bb11..41cfcba7ce49 100644
--- a/fs/xfs/linux-2.6/xfs_file.c
+++ b/fs/xfs/linux-2.6/xfs_file.c
@@ -299,7 +299,8 @@ xfs_file_open(
299 299
300STATIC int 300STATIC int
301xfs_file_close( 301xfs_file_close(
302 struct file *filp) 302 struct file *filp,
303 fl_owner_t id)
303{ 304{
304 return -bhv_vop_close(vn_from_inode(filp->f_dentry->d_inode), 0, 305 return -bhv_vop_close(vn_from_inode(filp->f_dentry->d_inode), 0,
305 file_count(filp) > 1 ? L_FALSE : L_TRUE, NULL); 306 file_count(filp) > 1 ? L_FALSE : L_TRUE, NULL);
@@ -369,7 +370,7 @@ xfs_file_readdir(
369 370
370 /* Try fairly hard to get memory */ 371 /* Try fairly hard to get memory */
371 do { 372 do {
372 if ((read_buf = (caddr_t)kmalloc(rlen, GFP_KERNEL))) 373 if ((read_buf = kmalloc(rlen, GFP_KERNEL)))
373 break; 374 break;
374 rlen >>= 1; 375 rlen >>= 1;
375 } while (rlen >= 1024); 376 } while (rlen >= 1024);