[PATCH V3 12/7] Orangefs: use inode_set_bytes for directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mike Marshall <hubcap@xxxxxxxxxxxx>

Signed-off-by: Mike Marshall <hubcap@xxxxxxxxxxxx>
---
 fs/orangefs/pvfs2-utils.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/orangefs/pvfs2-utils.c b/fs/orangefs/pvfs2-utils.c
index 6eecb18..11ee073 100644
--- a/fs/orangefs/pvfs2-utils.c
+++ b/fs/orangefs/pvfs2-utils.c
@@ -162,12 +162,11 @@ static int copy_attributes_to_inode(struct inode *inode,
 		}
 		/*FALLTHRU*/
 	default:
+		inode->i_size = PAGE_CACHE_SIZE;
+
 		pvfs2_lock_inode(inode);
-		inode->i_bytes = (unsigned short)PAGE_CACHE_SIZE;
-		inode->i_blocks = (unsigned long)(PAGE_CACHE_SIZE / 512);
+		inode_set_bytes(inode, inode->i_size);
 		pvfs2_unlock_inode(inode);
-
-		inode->i_size = PAGE_CACHE_SIZE;
 		break;
 	}

--
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux