From 455d2308ef1814a08ede8a042174d12f366f1265 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 20 Dec 2007 17:02:37 -0800 Subject: [PATCH] --- yaml --- r: 75116 b: refs/heads/master c: 4bde57094b3aac7c5d80fc82530db8b03c3ce2d3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/linux-2.6/xfs_file.c | 1 + trunk/fs/xfs/linux-2.6/xfs_iops.c | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 0f2210697044..17b4a2b12e84 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 04fa11ea170afd147b5d1e1ec88ec359a766bf31 +refs/heads/master: 4bde57094b3aac7c5d80fc82530db8b03c3ce2d3 diff --git a/trunk/fs/xfs/linux-2.6/xfs_file.c b/trunk/fs/xfs/linux-2.6/xfs_file.c index e1fcef2eb928..4847eb83fc18 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_file.c +++ b/trunk/fs/xfs/linux-2.6/xfs_file.c @@ -347,6 +347,7 @@ xfs_file_readdir( size = buf.used; de = (struct hack_dirent *)buf.dirent; + curr_offset = de->offset /* & 0x7fffffff */; while (size > 0) { if (filldir(dirent, de->name, de->namlen, curr_offset & 0x7fffffff, diff --git a/trunk/fs/xfs/linux-2.6/xfs_iops.c b/trunk/fs/xfs/linux-2.6/xfs_iops.c index 37e116779eb1..5e8bb7f71b5a 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_iops.c +++ b/trunk/fs/xfs/linux-2.6/xfs_iops.c @@ -332,9 +332,7 @@ xfs_vn_mknod( ASSERT(vp); ip = vn_to_inode(vp); - if (S_ISCHR(mode) || S_ISBLK(mode)) - ip->i_rdev = rdev; - else if (S_ISDIR(mode)) + if (S_ISDIR(mode)) xfs_validate_fields(ip); d_instantiate(dentry, ip); xfs_validate_fields(dir);