OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
mm
/
truncate.c
diff --git
a/mm/truncate.c
b/mm/truncate.c
index
76e35ad
..
f4c8270
100644
(file)
--- a/
mm/truncate.c
+++ b/
mm/truncate.c
@@
-732,7
+732,7
@@
EXPORT_SYMBOL(truncate_setsize);
*/
void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to)
{
*/
void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to)
{
- int bsize =
1 << inode->i_blkbits
;
+ int bsize =
i_blocksize(inode)
;
loff_t rounded_from;
struct page *page;
pgoff_t index;
loff_t rounded_from;
struct page *page;
pgoff_t index;