projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c36316b
)
Orangefs: use inode_set_bytes for directories
author
Mike Marshall
<hubcap@omnibond.com>
Wed, 5 Aug 2015 17:46:28 +0000
(13:46 -0400)
committer
Mike Marshall
<hubcap@omnibond.com>
Sat, 3 Oct 2015 15:40:05 +0000
(11:40 -0400)
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/pvfs2-utils.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/orangefs/pvfs2-utils.c
b/fs/orangefs/pvfs2-utils.c
index 6eecb1861acaf580b183a41d94d161a64b9b741b..11ee073ecd19c2d5b193ca0037b801fd13aa2d84 100644
(file)
--- 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;
}