projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acba3c
)
xfs: inode allocation should use unmapped buffers.
author
Dave Chinner
<
[email protected]
>
Fri, 23 Nov 2012 03:24:23 +0000
(14:24 +1100)
committer
Ben Myers
<
[email protected]
>
Mon, 26 Nov 2012 22:01:31 +0000
(16:01 -0600)
Inode buffers do not need to be mapped as inodes are read or written
directly from/to the pages underlying the buffer. This fixes a
regression introduced by commit
611c994
("xfs: make XBF_MAPPED the
default behaviour").
Signed-off-by: Dave Chinner <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Reviewed-by: Mark Tinguely <
[email protected]
>
Signed-off-by: Dave Chinner <
[email protected]
>
Signed-off-by: Ben Myers <
[email protected]
>
fs/xfs/xfs_ialloc.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_ialloc.c
b/fs/xfs/xfs_ialloc.c
index 2d6495eaaa3489149bfbaa1303abe6e1c532ab43..a815412eab805e69ba4bbc670095267651010180 100644
(file)
--- a/
fs/xfs/xfs_ialloc.c
+++ b/
fs/xfs/xfs_ialloc.c
@@
-200,7
+200,8
@@
xfs_ialloc_inode_init(
*/
d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster));
fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d,
- mp->m_bsize * blks_per_cluster, 0);
+ mp->m_bsize * blks_per_cluster,
+ XBF_UNMAPPED);
if (!fbuf)
return ENOMEM;
/*