Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory.
Signed-off-by: Zhen Lei <redacted>
---
fs/quota/quota_tree.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
@@ -49,11 +49,7 @@ static int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info)staticchar*getdqbuf(size_tsize){-char*buf=kmalloc(size,GFP_NOFS);-if(!buf)-printk(KERN_WARNING-"VFS: Not enough memory for quota buffers.\n");-returnbuf;+returnkmalloc(size,GFP_NOFS);}staticssize_tread_blk(structqtree_mem_dqinfo*info,uintblk,char*buf)
From: Jan Kara <jack@suse.cz> Date: 2021-06-17 15:01:19
On Thu 17-06-21 17:16:27, Zhen Lei wrote:
Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory.
Signed-off-by: Zhen Lei <redacted>
I agree the message is pointless. But when doing this, I guess we can just
get rid of getdqbuf() altogether and instead call kmalloc() directly in all
the places.
Honza
@@ -49,11 +49,7 @@ static int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info)staticchar*getdqbuf(size_tsize){-char*buf=kmalloc(size,GFP_NOFS);-if(!buf)-printk(KERN_WARNING-"VFS: Not enough memory for quota buffers.\n");-returnbuf;+returnkmalloc(size,GFP_NOFS);}staticssize_tread_blk(structqtree_mem_dqinfo*info,uintblk,char*buf)
Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory.
Signed-off-by: Zhen Lei <redacted>
I agree the message is pointless. But when doing this, I guess we can just
get rid of getdqbuf() altogether and instead call kmalloc() directly in all
the places.
@@ -49,11 +49,7 @@ static int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info)staticchar*getdqbuf(size_tsize){-char*buf=kmalloc(size,GFP_NOFS);-if(!buf)-printk(KERN_WARNING-"VFS: Not enough memory for quota buffers.\n");-returnbuf;+returnkmalloc(size,GFP_NOFS);}staticssize_tread_blk(structqtree_mem_dqinfo*info,uintblk,char*buf)