changed kmalloc to vmalloc to fix fragmentation problem
Subsystems (2)
PATCH 1/1 changed kmalloc to vmalloc to fix fragmentation problem
--- fs/ubifs/journal.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
fs/ubifs/journal.c +3 -3
@@ -694,7 +694,7 @@ int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode, DBGKEY(key));ubifs_assert (len <=UBIFS_BLOCK_SIZE ); - data =kmalloc (dlen,GFP_NOFS ); + data =vmalloc (dlen);if (!data)return -ENOMEM ;
@@ -732,7 +732,7 @@ int ubifs_jnl_write_data(struct ubifs_info *c, const struct inode *inode, goto out_ro;finish_reservation (c); -kfree (data); +vfree (data);return 0 ; out_release:
@@ -741,7 +741,7 @@ out_ro:ubifs_ro_mode (c, err);finish_reservation (c); out_free: -kfree (data); +vfree (data);return err; }
Signature · 4 lines
1.6.3.3 --Boundary_(ID_dxXn63fyCtaNjH/oHfaX3Q)--