f2fs: allocate trace path buffer from names_cache
PATCH 1/1 f2fs: allocate trace path buffer from names_cache
It would be better to use the dedicated slab to store path.
--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/f2fs/file.c +2 -2
@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );
@@ -4374,7 +4374,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +__putname (buf); }static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
Signature · 1 line
2.35.3
Chao Yu
maintainerQuoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4364
Quoted 5 lines
fs/f2fs/file.c +1
-1@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();
How about:
buf = f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4377
Quoted 9 lines
fs/f2fs/file.c +1
-1if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );@@ -4374,7 +4374,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +__putname (buf);
kmem_cache_free(names_cachep, buf);
Thanks,
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4380
Quoted 3 lines
fs/f2fs/file.c +0
-0}static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Jaegeuk Kim
maintainerQuoted 20 lines · Chao Yu
Quoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4363
Quoted 4 lines
fs/f2fs/file.c +1
-1@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();How about:
Quoted 1 line
buf =
f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));
This looks like a hack using names_cachep?
Quoted 13 lines
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4377
Quoted 10 lines
fs/f2fs/file.c +1
-1if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );@@ -4374,7 +4374,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +__putname (buf);
kmem_cache_free(names_cachep, buf);
Quoted 4 lines
Thanks,
Quoted 2 lines
fs/f2fs/file.c +0
-0}static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 21 lines · Jaegeuk Kim
Quoted 20 lines · Chao Yu
Quoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4363
Quoted 4 lines
fs/f2fs/file.c +1
-1@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();How about:
Quoted 3 lines
Quoted 1 line
buf =
f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));This looks like a hack using
names_cachep?
names_cachep was exported in fs.h.
Quoted 2 lines
Using
f2fs_kmem_cache_allocis able to inject malloc error. But here is a trace event, is it ok to inject error in a trace path?
Yes, the fail path handling is very simple, so it's fine to leave it as it is.
Thanks,
Quoted 14 lines
Quoted 14 lines
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4377
Quoted 11 lines
fs/f2fs/file.c +1
-1if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );@@ -4374,7 +4374,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +__putname (buf);
kmem_cache_free(names_cachep, buf);
Quoted 4 lines
Quoted 4 lines
Thanks,
Quoted 2 lines
fs/f2fs/file.c +0
-0}static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Jaegeuk Kim
maintainerQuoted 22 lines · Chao Yu
Quoted 21 lines · Jaegeuk Kim
Quoted 20 lines · Chao Yu
Quoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4363
Quoted 4 lines
fs/f2fs/file.c +1
-1@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();How about:
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
buf =
f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));This looks like a hack using
names_cachep?
names_cachepwas exported infs.h.
I think that's for __getname() in general, which doesn't indicate you can hack. No one is using like that.
$ grep names_cachep fs/* -R
fs/dcache.c:struct kmem_cache *names_cachep __read_mostly;
fs/dcache.c:EXPORT_SYMBOL(names_cachep);
fs/dcache.c: names_cachep = kmem_cache_create_usercopy("names_cache", PATH_MAX, 0,$ grep __getname fs/* -R fs/ceph/mds_client.c: path = __getname(); fs/cifs/cifsproto.h: return __getname(); fs/dcache.c:/* SLAB cache for __getname() consumers */ fs/d_path.c: char *page = __getname(); fs/exfat/dir.c: nb->lfn = __getname(); fs/f2fs/file.c: buf = __getname(); fs/fat/dir.c: *unicode = __getname(); fs/fat/namei_vfat.c: uname = __getname(); fs/hostfs/hostfs_kern.c: char *name = __getname(); fs/namei.c: result = __getname(); fs/namei.c: result = __getname(); fs/ntfs3/dir.c: name = __getname(); fs/ntfs3/xattr.c: buf = __getname(); fs/ntfs3/inode.c: new_de = __getname(); fs/ntfs3/inode.c: de = __getname(); fs/ntfs3/inode.c: de = __getname(); fs/ntfs3/namei.c: struct cpu_str *uni = __getname(); fs/ntfs3/namei.c: de = __getname(); fs/ntfs3/namei.c: struct cpu_str *uni = __getname(); fs/ntfs3/namei.c: uni = __getname(); fs/ntfs3/namei.c: uni1 = __getname(); fs/vboxsf/utils.c: * Returns a shfl_string allocated through __getname (must be freed using fs/vboxsf/utils.c: buf = __getname(); fs/vboxsf/utils.c: shfl_path = __getname();
Quoted 8 lines
Quoted 3 lines
Using
f2fs_kmem_cache_allocis able to inject malloc error. But here is a trace event, is it ok to inject error in a trace path?Yes, the fail path handling is very simple, so it's fine to leave it as it is.
Reviewed-by Chao Yu <[email protected]>
What is this for?
Quoted 21 lines
Thanks,
Quoted 18 lines
Quoted 18 lines
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4377
Quoted 11 lines
fs/f2fs/file.c +1
-1if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );@@ -4374,7 +4374,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +__putname (buf);
kmem_cache_free(names_cachep, buf);Thanks,
Quoted 2 lines
fs/f2fs/file.c +0
-0}static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Jaegeuk Kim
maintainerQuoted 67 lines · Jaegeuk Kim
Quoted 22 lines · Chao Yu
Quoted 21 lines · Jaegeuk Kim
Quoted 20 lines · Chao Yu
Quoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4363
Quoted 4 lines
fs/f2fs/file.c +1
-1@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();How about:
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
buf =
f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));This looks like a hack using
names_cachep?
names_cachepwas exported infs.h.I think that's for
__getname()in general, which doesn't indicate you can hack. No one is using like that.$ grep names_cachep fs/* -R fs/dcache.c:struct kmem_cache *names_cachep __read_mostly; fs/dcache.c:EXPORT_SYMBOL(names_cachep); fs/dcache.c: names_cachep = kmem_cache_create_usercopy("names_cache", PATH_MAX, 0,$ grep __getname fs/* -R fs/ceph/mds_client.c: path = __getname(); fs/cifs/cifsproto.h: return __getname(); fs/dcache.c:/* SLAB cache for __getname() consumers */ fs/d_path.c: char *page = __getname(); fs/exfat/dir.c: nb->lfn = __getname(); fs/f2fs/file.c: buf = __getname(); fs/fat/dir.c: *unicode = __getname(); fs/fat/namei_vfat.c: uname = __getname(); fs/hostfs/hostfs_kern.c: char *name = __getname(); fs/namei.c: result = __getname(); fs/namei.c: result = __getname(); fs/ntfs3/dir.c: name = __getname(); fs/ntfs3/xattr.c: buf = __getname(); fs/ntfs3/inode.c: new_de = __getname(); fs/ntfs3/inode.c: de = __getname(); fs/ntfs3/inode.c: de = __getname(); fs/ntfs3/namei.c: struct cpu_str *uni = __getname(); fs/ntfs3/namei.c: de = __getname(); fs/ntfs3/namei.c: struct cpu_str *uni = __getname(); fs/ntfs3/namei.c: uni = __getname(); fs/ntfs3/namei.c: uni1 = __getname(); fs/vboxsf/utils.c: * Returns a shfl_string allocated through __getname (must be freed using fs/vboxsf/utils.c: buf = __getname(); fs/vboxsf/utils.c: shfl_path = __getname();Quoted 4 lines
Quoted 3 lines
Using
f2fs_kmem_cache_allocis able to inject malloc error. But here is a trace event, is it ok to inject error in a trace path?
Quoted 7 lines
Quoted 4 lines
Yes, the fail path handling is very simple, so it's fine to leave it as it is.
Reviewed-by Chao Yu <[email protected]>What is this for?
If we want to keep the error injection, how about this?
--- fs/f2fs/f2fs.h | 13 +++++++++++++ fs/f2fs/file.c | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-)
fs/f2fs/f2fs.h +13 -0
@@ -3347,6 +3347,19 @@ static inline void *f2fs_kmalloc(struct f2fs_sb_info *sbi,return kmalloc (size, flags); } +static inline void *f2fs_getname (struct f2fs_sb_info *sbi) +{ +if (time_to_inject (sbi,FAULT_KMALLOC )) +return NULL ; + +return __getname (); +} + +static inline void f2fs_putname (char *buf) +{ +__putname (buf); +} +static inline void *f2fs_kzalloc (struct f2fs_sb_info *sbi,size_t size,gfp_t flags) {
fs/f2fs/file.c +2 -2
@@ -4372,7 +4372,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =f2fs_getname (F2FS_I_SB (inode));if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );
@@ -4385,7 +4385,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +f2fs_putname (buf); }static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
Signature · 1 line
2.40.0.634.g4ca3ef3211-goog
Chao Yu
maintainerQuoted 68 lines · Jaegeuk Kim
Quoted 67 lines · Jaegeuk Kim
Quoted 22 lines · Chao Yu
Quoted 21 lines · Jaegeuk Kim
Quoted 20 lines · Chao Yu
Quoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4363
Quoted 4 lines
fs/f2fs/file.c +1
-1@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();How about:
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
buf =
f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));This looks like a hack using
names_cachep?
names_cachepwas exported infs.h.I think that's for
__getname()in general, which doesn't indicate you can hack. No one is using like that.$ grep names_cachep fs/* -R fs/dcache.c:struct kmem_cache *names_cachep __read_mostly; fs/dcache.c:EXPORT_SYMBOL(names_cachep); fs/dcache.c: names_cachep = kmem_cache_create_usercopy("names_cache", PATH_MAX, 0,$ grep __getname fs/* -R fs/ceph/mds_client.c: path = __getname(); fs/cifs/cifsproto.h: return __getname(); fs/dcache.c:/* SLAB cache for __getname() consumers */ fs/d_path.c: char *page = __getname(); fs/exfat/dir.c: nb->lfn = __getname(); fs/f2fs/file.c: buf = __getname(); fs/fat/dir.c: *unicode = __getname(); fs/fat/namei_vfat.c: uname = __getname(); fs/hostfs/hostfs_kern.c: char *name = __getname(); fs/namei.c: result = __getname(); fs/namei.c: result = __getname(); fs/ntfs3/dir.c: name = __getname(); fs/ntfs3/xattr.c: buf = __getname(); fs/ntfs3/inode.c: new_de = __getname(); fs/ntfs3/inode.c: de = __getname(); fs/ntfs3/inode.c: de = __getname(); fs/ntfs3/namei.c: struct cpu_str *uni = __getname(); fs/ntfs3/namei.c: de = __getname(); fs/ntfs3/namei.c: struct cpu_str *uni = __getname(); fs/ntfs3/namei.c: uni = __getname(); fs/ntfs3/namei.c: uni1 = __getname(); fs/vboxsf/utils.c: * Returns a shfl_string allocated through __getname (must be freed using fs/vboxsf/utils.c: buf = __getname(); fs/vboxsf/utils.c: shfl_path = __getname();Quoted 4 lines
Quoted 3 lines
Using
f2fs_kmem_cache_allocis able to inject malloc error. But here is a trace event, is it ok to inject error in a trace path?
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Yes, the fail path handling is very simple, so it's fine to leave it as it is.
Reviewed-by Chao Yu <[email protected]>What is this for?
Oh, I mean I'm okay w/ original patch, because f2fs_trace_rw_file_path() doesn't have complicated error handling.
Quoted 3 lines
Quoted 1 line
If we want to keep the error injection, how about this?
Both original patch or below patch w/ fault injection is fine to me.
Free feel to add rvb tag of me. :)
Thanks,
Quoted 46 lines
Signed-off-by Wu Bo <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- fs/f2fs/f2fs.h | 13 +++++++++++++ fs/f2fs/file.c | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-)fs/f2fs/f2fs.h +13
-0@@ -3347,6 +3347,19 @@ static inline void *f2fs_kmalloc(struct f2fs_sb_info *sbi,return kmalloc (size, flags); } +static inline void *f2fs_getname (struct f2fs_sb_info *sbi) +{ +if (time_to_inject (sbi,FAULT_KMALLOC )) +return NULL ; + +return __getname (); +} + +static inline void f2fs_putname (char *buf) +{ +__putname (buf); +} +static inline void *f2fs_kzalloc (struct f2fs_sb_info *sbi,size_t size,gfp_t flags) {fs/f2fs/file.c +1
-1@@ -4372,7 +4372,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)struct inode *inode =file_inode (iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =f2fs_getname (F2FS_I_SB (inode));if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) · line 4391
Quoted 8 lines
fs/f2fs/file.c +1
-1@@ -4385,7 +4385,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw)trace_f2fs_dataread_start (inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +f2fs_putname (buf); }static ssize_t f2fs_file_read_iter (struct kiocb *iocb,struct iov_iter *to)
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 21 lines · Chao Yu
Quoted 12 lines · Wu Bo
It would be better to use the dedicated slab to store path.
Signed-off-by Wu Bo <[email protected]>--- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/f2fs/file.c +0
-0fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct · line 4365
Quoted 5 lines
fs/f2fs/file.c +1
-0@@ -4361,7 +4361,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) struct inode *inode = file_inode(iocb->ki_filp);char *buf, *path; - buf =f2fs_kmalloc (F2FS_I_SB (inode),PATH_MAX ,GFP_KERNEL ); + buf =__getname ();How about:
Quoted 2 lines
buf =
f2fs_kmem_cache_alloc(names_cachep, GFP_KERNEL, NULL, F2FS_I_SB(inode));
Using f2fs_kmem_cache_alloc is able to inject malloc error. But here is a trace event, is it ok to inject error in a trace path?
Quoted 26 lines
fs/f2fs/file.c static void f2fs_trace_rw_file_path(struct · line 4378
Quoted 11 lines
fs/f2fs/file.c +1
-1if (!buf)return ; path =dentry_path_raw (file_dentry (iocb->ki_filp), buf,PATH_MAX );@@ -4374,7 +4374,7 @@ static void f2fs_trace_rw_file_path(struct kiocb *iocb, size_t count, int rw) trace_f2fs_dataread_start(inode, iocb->ki_pos, count, current->pid, path, current->comm); free_buf: -kfree (buf); +__putname (buf);
kmem_cache_free(names_cachep, buf);Thanks,
Quoted 3 lines
fs/f2fs/file.c +0
-0} static ssize_t f2fs_file_read_iter(struct kiocb *iocb, struct
iov_iter*to)_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel